Skip to content

Commit

Permalink
fix: dont call deprecated method if using exactly version 8 (#9)
Browse files Browse the repository at this point in the history
this should be a `<` instead of a `<=`
  • Loading branch information
mr-feek authored Jul 16, 2021
1 parent 19c9ae2 commit f7588f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ protected function inspectProperty(\ReflectionClass $rc, $name)
*/
protected function getParameterType(\ReflectionParameter $param)
{
if (PHP_VERSION_ID <= 80000 && null !== $class = $param->getClass()) {
if (PHP_VERSION_ID < 80000 && null !== $class = $param->getClass()) {
return "\\" . $class->getName();
}

Expand Down

0 comments on commit f7588f1

Please sign in to comment.