Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public function getSolution(): Solution |
||
50 | { |
||
51 | return BaseSolution::create('Transition not found') |
||
52 | ->setSolutionDescription("Register the transition in `{$modelClass}::registerStates()`") |
||
|
|||
53 | ->setDocumentationLinks([ |
||
54 | 'Configuring transitions' => 'https://docs.spatie.be/laravel-model-states/v1/working-with-transitions/01-configuring-transitions/' |
||
55 | ]); |
||
56 | } |
||
57 | } |
||
58 |
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.