package and depencies
This commit is contained in:
10
vendor/symfony/var-dumper/VarDumper.php
vendored
10
vendor/symfony/var-dumper/VarDumper.php
vendored
@@ -37,7 +37,7 @@ class VarDumper
|
||||
*/
|
||||
private static $handler;
|
||||
|
||||
public static function dump($var)
|
||||
public static function dump(mixed $var)
|
||||
{
|
||||
if (null === self::$handler) {
|
||||
self::register();
|
||||
@@ -46,11 +46,11 @@ class VarDumper
|
||||
return (self::$handler)($var);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return callable|null
|
||||
*/
|
||||
public static function setHandler(callable $callable = null)
|
||||
public static function setHandler(callable $callable = null): ?callable
|
||||
{
|
||||
if (1 > \func_num_args()) {
|
||||
trigger_deprecation('symfony/var-dumper', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
|
||||
}
|
||||
$prevHandler = self::$handler;
|
||||
|
||||
// Prevent replacing the handler with expected format as soon as the env var was set:
|
||||
|
Reference in New Issue
Block a user