Upgrade to 4.5.0
This commit is contained in:
@@ -383,7 +383,7 @@ class PrettyPageHandler extends Handler
|
||||
throw new InvalidArgumentException('Expecting callback argument to be callable');
|
||||
}
|
||||
|
||||
$this->extraTables[$label] = function (\Whoops\Inspector\InspectorInterface $inspector = null) use ($callback) {
|
||||
$this->extraTables[$label] = function (?\Whoops\Inspector\InspectorInterface $inspector = null) use ($callback) {
|
||||
try {
|
||||
$result = call_user_func($callback, $inspector);
|
||||
|
||||
|
2
kirby/vendor/filp/whoops/src/Whoops/Run.php
vendored
2
kirby/vendor/filp/whoops/src/Whoops/Run.php
vendored
@@ -81,7 +81,7 @@ final class Run implements RunInterface
|
||||
*/
|
||||
private $frameFilters = [];
|
||||
|
||||
public function __construct(SystemFacade $system = null)
|
||||
public function __construct(?SystemFacade $system = null)
|
||||
{
|
||||
$this->system = $system ?: new SystemFacade;
|
||||
$this->inspectorFactory = new InspectorFactory();
|
||||
|
@@ -233,7 +233,7 @@ class TemplateHelper
|
||||
*
|
||||
* @param string $template
|
||||
*/
|
||||
public function render($template, array $additionalVariables = null)
|
||||
public function render($template, ?array $additionalVariables = null)
|
||||
{
|
||||
$variables = $this->getVariables();
|
||||
|
||||
|
Reference in New Issue
Block a user