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
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()`?"))
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.