Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48cbd2b commit 2606076Copy full SHA for 2606076
src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php
@@ -133,7 +133,7 @@ public function getProperties(string $class, array $context = []): ?array
133
*/
134
public function getTypes(string $class, string $property, array $context = []): ?array
135
{
136
- if (method_exists(\ReflectionProperty::class, 'getType')) {
+ if (\PHP_VERSION_ID >= 70400) {
137
try {
138
$reflectionProperty = new \ReflectionProperty($class, $property);
139
$type = $reflectionProperty->getType();
0 commit comments