| 1 | <?php | ||
| 9 | class TransitionNotFound extends CouldNotPerformTransition implements ProvidesSolution | ||
| 10 | { | ||
| 11 | /** @var string */ | ||
| 12 | protected $from; | ||
| 13 | |||
| 14 | /** @var string */ | ||
| 15 | protected $to; | ||
| 16 | |||
| 17 | /** @var string */ | ||
| 18 | protected $modelClass; | ||
| 19 | |||
| 20 | public static function make(string $from, string $to, string $modelClass): self | ||
| 27 | |||
| 28 | public function setFrom(string $from): self | ||
| 34 | |||
| 35 | public function setTo(string $to): self | ||
| 41 | |||
| 42 | public function setModelClass(string $modelClass): self | ||
| 48 | |||
| 49 | public function getSolution(): Solution | ||
| 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.