for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
<?php
@ini_set('date.timezone', 'Asia/Shanghai');
@header('content-type:text/html;charset=utf-8');
define('EXPORT_PATH',__DIR__);
define('PUCK_VER','1.0.17');
if(DEBUG){
error_reporting(E_ALL);
@ini_set('display_errors', 'On');
@ob_start();
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
new \Whoops\Handler\PrettyPageHandler()
object<Whoops\Handler\PrettyPageHandler>
callable
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:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
$whoops->register();
}
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: