Commit 8515857
committed
fix: correct error handler callback signature in IntegrationValidator
Updated the dummy error handler in `checkHandlers()` to use a fully typed
callable matching PHP's expected signature for `set_error_handler()`
(int $errno, string $errstr, string $errfile, int $errline): bool.
This resolves the PHPStan error:
“Parameter #1 $callback of function set_error_handler expects
(callable(int, string, string, int): bool)|null, Closure(): null given.”
The handler now returns a boolean and no longer violates the callable contract.1 parent d89f849 commit 8515857
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
0 commit comments