1 | <?php |
||
13 | class Whoops_Run_Composite { |
||
14 | |||
15 | /** |
||
16 | * @var SystemFacade |
||
17 | */ |
||
18 | private $system; |
||
19 | |||
20 | /** |
||
21 | * @var Run |
||
22 | */ |
||
23 | private $run; |
||
24 | |||
25 | private $skipAllNoticesAndWarnings = false; |
||
26 | |||
27 | private $pathPatterns; |
||
28 | |||
29 | public function __construct(SystemFacade $system = null) |
||
34 | |||
35 | public function register() { |
||
45 | |||
46 | public function unregister() { |
||
50 | |||
51 | public function pushHandler($handler) { |
||
54 | |||
55 | public function skipAllNoticesAndWarnings() { |
||
58 | |||
59 | public function watchFilesWithPatterns($pathPatterns) { |
||
62 | |||
63 | /** |
||
64 | * Silence particular errors in particular files |
||
65 | * @param array|string $patterns List or a single regex pattern to match |
||
66 | * @param int $levels Defaults to E_STRICT | E_DEPRECATED |
||
67 | * @return Run |
||
68 | * @see https://maximivanov.github.io/php-error-reporting-calculator/ |
||
69 | */ |
||
70 | public function silenceErrorsInPaths($patterns, $levels = 10240) { |
||
73 | |||
74 | /** |
||
75 | * Converts generic PHP errors to \ErrorException |
||
76 | * instances, before passing them off to be handled. |
||
77 | * |
||
78 | * This method MUST be compatible with set_error_handler. |
||
79 | * |
||
80 | * @param int $level |
||
81 | * @param string $message |
||
82 | * @param string $file |
||
83 | * @param int $line |
||
84 | * |
||
85 | * @return bool |
||
86 | * @throws ErrorException |
||
87 | */ |
||
88 | public function handleError($level, $message, $file = null, $line = null) { |
||
133 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: