In the file src/RouteAccess.php, line 33 should be updated:
public static function can($route, \Closure $callback = null, \Closure $failCallback = null, $attributes = [])
to
public static function can($route, ?\Closure $callback = null, ?\Closure $failCallback = null, $attributes = [])
because Implicitly nullable parameter types are now deprecated in PHP 8.4.
In the file src/RouteAccess.php, line 33 should be updated:
public static function can($route, \Closure $callback = null, \Closure $failCallback = null, $attributes = [])to
public static function can($route, ?\Closure $callback = null, ?\Closure $failCallback = null, $attributes = [])because Implicitly nullable parameter types are now deprecated in PHP 8.4.