Skip to content

Commit

Permalink
Fixes Null reserved issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mykajs committed Feb 13, 2018
1 parent 36cd6ce commit c85224d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DataTypes/JsonObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function convertOffset($offset)
protected function convertValue($value, $offset)
{
if (is_null($value)) {
return new Null();
return new NullDataType();
}
$convertedOffset = $this->convertOffset($offset);
$dataClass = $this->classes[$convertedOffset];
Expand Down
2 changes: 1 addition & 1 deletion src/DataTypes/Null.php → src/DataTypes/NullDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace DotMailer\Api\DataTypes;

class Null implements IDataType
class NullDataType implements IDataType
{

public function toJson()
Expand Down

0 comments on commit c85224d

Please sign in to comment.