-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLEANUP] Remove an impossible
throw
(#1315)
PHPStan is able to determine that `array_combine` when passed the results of `array_keys` and `array_values` for the same array can never fail (in the sense of returning `false`), because the two passed arrays will always be the same length. Psalm could not, which was why the return value check and `throw` was originally put in.
- Loading branch information
Showing
2 changed files
with
1 addition
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters