1 | <?php |
||
21 | final class ScenarioStateCall extends EnvironmentCall |
||
22 | { |
||
23 | /** |
||
24 | * @var HookScope |
||
25 | */ |
||
26 | private $scope; |
||
27 | |||
28 | /** |
||
29 | * Initializes scenario state call. |
||
30 | * |
||
31 | * @param HookScope $scope |
||
32 | * @param Hook $hook |
||
33 | * @param null|integer $errorReportingLevel |
||
34 | */ |
||
35 | public function __construct(HookScope $scope, Hook $hook, $arguments, $errorReportingLevel = null) |
||
45 | |||
46 | /** |
||
47 | * Returns hook scope. |
||
48 | * |
||
49 | * @return HookScope |
||
50 | */ |
||
51 | public function getScope() |
||
55 | } |
||
56 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.