Skip to content

Commit

Permalink
Merge pull request #1163 from adhocore/1.x
Browse files Browse the repository at this point in the history
PHP7.4 ternary operator deprecation
  • Loading branch information
goetas authored Feb 11, 2020
2 parents b241327 + a4a93a9 commit dba3dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JMS/Serializer/SerializationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ public function getInitialType()
{
return $this->initialType
? $this->initialType
: $this->attributes->containsKey('initial_type') ? $this->attributes->get('initial_type')->get() : null;
: ($this->attributes->containsKey('initial_type') ? $this->attributes->get('initial_type')->get() : null);
}
}

0 comments on commit dba3dbe

Please sign in to comment.