( ! ) Fatal error: Uncaught TypeError: Argument 2 passed to App\Core\Helpers\RoutingHooks::generateRoutesCache() must be of the type array, null given, called in /var/www/bcie_co_uk/webroot/lib/App/Core/Helpers/RoutingHooks.php on line 60 and defined in /var/www/bcie_co_uk/webroot/lib/App/Core/Helpers/RoutingHooks.php on line 89
( ! ) TypeError: Argument 2 passed to App\Core\Helpers\RoutingHooks::generateRoutesCache() must be of the type array, null given, called in /var/www/bcie_co_uk/webroot/lib/App/Core/Helpers/RoutingHooks.php on line 60 in /var/www/bcie_co_uk/webroot/lib/App/Core/Helpers/RoutingHooks.php on line 89
Call Stack
#TimeMemoryFunctionLocation
10.0000420824{main}( ).../index.php:0
20.32651550000require_once( '/var/www/bcie_co_uk/webroot/core/routes-webadmin.php ).../index.php:37
30.32671559256Slim\App->group( $pattern = '/webadmin', $callable = class Closure { virtual $closure = "{closure}" } ).../routes-webadmin.php:764
40.32671559368Slim\RouteGroup->__invoke( $app = class Slim\App { private $container = class Slim\Container { private $defaultSettings = [...]; private ${Pimple\Container}values = [...]; private ${Pimple\Container}factories = class SplObjectStorage { ... }; private ${Pimple\Container}protected = class SplObjectStorage { ... }; private ${Pimple\Container}frozen = [...]; private ${Pimple\Container}raw = [...]; private ${Pimple\Container}keys = [...] }; protected $tip = class Closure { virtual $closure = "$this->Slim\{closure}" }; protected $middlewareLock = FALSE } ).../App.php:272
50.32671560288Closure->{closure:/var/www/bcie_co_uk/webroot/core/routes-webadmin.php:37-764}( class Slim\App { private $container = class Slim\Container { private $defaultSettings = [...]; private ${Pimple\Container}values = [...]; private ${Pimple\Container}factories = class SplObjectStorage { ... }; private ${Pimple\Container}protected = class SplObjectStorage { ... }; private ${Pimple\Container}frozen = [...]; private ${Pimple\Container}raw = [...]; private ${Pimple\Container}keys = [...] }; protected $tip = class Closure { virtual $closure = "$this->Slim\{closure}" }; protected $middlewareLock = FALSE } ).../RouteGroup.php:25
60.32691568072include( '/var/www/bcie_co_uk/webroot/modules/Blocks/BlockTypes/src/routes/webadmin.php ).../routes-webadmin.php:41
70.32691568864Slim\App->group( $pattern = '/blocks/types', $callable = class Closure { virtual $closure = "$this->{closure}" } ).../webadmin.php:102
80.32691568976Slim\RouteGroup->__invoke( $app = class Slim\App { private $container = class Slim\Container { private $defaultSettings = [...]; private ${Pimple\Container}values = [...]; private ${Pimple\Container}factories = class SplObjectStorage { ... }; private ${Pimple\Container}protected = class SplObjectStorage { ... }; private ${Pimple\Container}frozen = [...]; private ${Pimple\Container}raw = [...]; private ${Pimple\Container}keys = [...] }; protected $tip = class Closure { virtual $closure = "$this->Slim\{closure}" }; protected $middlewareLock = FALSE } ).../App.php:272
90.32691569768Closure->{closure:/var/www/bcie_co_uk/webroot/modules/Blocks/BlockTypes/src/routes/webadmin.php:13-102}( class Slim\App { private $container = class Slim\Container { private $defaultSettings = [...]; private ${Pimple\Container}values = [...]; private ${Pimple\Container}factories = class SplObjectStorage { ... }; private ${Pimple\Container}protected = class SplObjectStorage { ... }; private ${Pimple\Container}frozen = [...]; private ${Pimple\Container}raw = [...]; private ${Pimple\Container}keys = [...] }; protected $tip = class Closure { virtual $closure = "$this->Slim\{closure}" }; protected $middlewareLock = FALSE } ).../RouteGroup.php:25
100.32691570088App\Core\Helpers\RoutingHooks::routeAlter( $route = '/webadmin/blocks/types/add', $arg1 = class Slim\App { private $container = class Slim\Container { private $defaultSettings = [...]; private ${Pimple\Container}values = [...]; private ${Pimple\Container}factories = class SplObjectStorage { ... }; private ${Pimple\Container}protected = class SplObjectStorage { ... }; private ${Pimple\Container}frozen = [...]; private ${Pimple\Container}raw = [...]; private ${Pimple\Container}keys = [...] }; protected $tip = class Closure { virtual $closure = "$this->Slim\{closure}" }; protected $middlewareLock = FALSE }, $arg2 = ??? ).../webadmin.php:14
110.32711570168App\Core\Helpers\RoutingHooks::generateRoutesCache( $cache = class Zend\Cache\Storage\Adapter\Filesystem { protected $totalSpace = NULL; protected $lastFileSpecId = '/var/www/bcie_co_uk/webroot/spool/cache/system-routes/2'; protected $lastFileSpec = '/var/www/bcie_co_uk/webroot/spool/cache/system-17/system-55/system-routes'; protected $events = class Zend\EventManager\EventManager { protected $events = [...]; protected $eventPrototype = class Zend\EventManager\Event { ... }; protected $identifiers = [...]; protected $sharedManager = NULL }; protected $eventHandles = []; protected $pluginRegistry = class SplObjectStorage { }; protected $capabilities = NULL; protected $capabilityMarker = NULL; protected $options = class Zend\Cache\Storage\Adapter\FilesystemOptions { protected $cacheDir = '/var/www/bcie_co_uk/webroot/spool/cache'; protected $clearStatCache = TRUE; protected $dirLevel = 2; protected $dirPermission = 493; protected $fileLocking = TRUE; protected $filePermission = 438; protected $keyPattern = '/^[a-z0-9_\\+\\-]*$/Di'; protected $namespaceSeparator = '-'; protected $noAtime = TRUE; protected $noCtime = TRUE; protected $umask = FALSE; protected $suffix = 'dat'; protected $tagSuffix = 'tag'; protected $__prioritizedProperties__ = [...]; protected $adapter = ...; protected $namespace = 'system'; protected $readable = TRUE; protected $ttl = 3600; protected $writable = TRUE; protected $__strictMode__ = TRUE } }, $routes = NULL, $cleanHook = 'hookwebadminblockstypesadd' ).../RoutingHooks.php:60