Skip to content

Commit b14ce9e

Browse files
committed
Remove PHP <=5.6 compatibility checks
1 parent 901830e commit b14ce9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpGenerator/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function from(\ReflectionParameter $from)
5555
}
5656
}
5757
}
58-
$param->optional = PHP_VERSION_ID < 50407 ? $from->isOptional() || ($param->typeHint && $from->allowsNull()) : $from->isDefaultValueAvailable();
58+
$param->optional = $from->isDefaultValueAvailable();
5959
$param->defaultValue = $from->isDefaultValueAvailable() ? $from->getDefaultValue() : NULL;
6060

6161
$namespace = $from->getDeclaringClass() ? $from->getDeclaringClass()->getNamespaceName() : NULL;

0 commit comments

Comments
 (0)