Skip to content

Commit

Permalink
minor #193 Fix PhpStan issue with FlagBag missing template on static …
Browse files Browse the repository at this point in the history
…methods (laurentmuller)

This PR was merged into the 2.x-dev branch.

Discussion
----------

Fix PhpStan issue with FlagBag missing template on static methods

Commits
-------

ccedb24 Correction for PR #192.
  • Loading branch information
ogizanagi committed Jun 20, 2022
2 parents 3edab76 + ccedb24 commit 52b33dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FlagBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public static function fromAll(string $enumType): FlagBag
}

/**
* @template T of \BackedEnum
* @param class-string<T>|T $enumOrType
*/
public static function from(string|\BackedEnum $enumOrType, \BackedEnum ...$flags): static
Expand Down

0 comments on commit 52b33dd

Please sign in to comment.