Commit 742bf04
committed
Remove redundant checks already covered by is_callable()
Before this change, the array callable branches included explicit isset(),
is_string(), and is_object() checks to narrow the type for static analysis.
After updating PHPStan, it now understands that is_callable() on an array
already guarantees those conditions, making the extra checks dead code that
adds noise without providing safety.
Assisted-by: Claude Code (claude-sonnet-4-6)1 parent 291b624 commit 742bf04
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments