| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | public static function make(string $from, string $to, string $modelClass): self | ||
| 21 |     { | ||
| 22 |         return (new static("Transition from `{$from}` to `{$to}` on model `{$modelClass}` was not found, did you forget to register it in `{$modelClass}::registerStates()`?")) | ||
| 23 | ->setFrom($from) | ||
| 24 | ->setTo($to) | ||
| 25 | ->setModelClass($modelClass); | ||
| 26 | } | ||
| 27 | |||
| 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.