Skip to content

Commit

Permalink
Merge pull request #259 from maartenpaauw/main
Browse files Browse the repository at this point in the history
fix(config): var annotation for `$allowedTransitions`
  • Loading branch information
Nielsvanpach authored Sep 27, 2024
2 parents 50ea39f + 7bef38c commit 187a470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StateConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class StateConfig
/** @var string|null|\Spatie\ModelStates\State */
public ?string $defaultStateClass = null;

/** @var string[] */
/** @var array<string, null|class-string<\Spatie\ModelStates\Transition>> */
public array $allowedTransitions = [];

/** @var string[] */
Expand Down

0 comments on commit 187a470

Please sign in to comment.