package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -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: