We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4313f03 + 5c49998 commit 002a850Copy full SHA for 002a850
src/Helpers/AssertAttributeHelper.php
@@ -49,7 +49,7 @@ trait AssertAttributeHelper {
49
public static function getProperty( $objInstance, $propertyName ) {
50
$reflect = new ReflectionObject( $objInstance );
51
$property = $reflect->getProperty( $propertyName );
52
- $property->setAccessible( true );
+ ( \PHP_VERSION_ID < 80100 ) && $property->setAccessible( true );
53
54
return $property;
55
}
0 commit comments