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.
1 parent d21bcca commit 5ae2934Copy full SHA for 5ae2934
classes/PHPProphet.php
@@ -7,6 +7,7 @@
7
use Prophecy\Prophet;
8
use Prophecy\Prophecy\ProphecyInterface;
9
use Prophecy\Exception\Prediction\AggregateException;
10
+use ReflectionProperty;
11
12
/**
13
* A Prophet for built-in PHP functions.
@@ -120,7 +121,7 @@ public static function define($namespace, $name)
120
121
*/
122
private static function getProperty(Prophet $prophet, $property)
123
{
- $reflection = new \ReflectionProperty($prophet, $property);
124
+ $reflection = new ReflectionProperty($prophet, $property);
125
$reflection->setAccessible(true);
126
return $reflection->getValue($prophet);
127
}
0 commit comments