TypeError - array_search(): Argument #2 ($haystack) must be of type array, bool given /var/www/accesscard.online/class/Provider/CategoryList.php:19
object(TypeError)#112 (7) {
  ["message":protected]=>
  string(73) "array_search(): Argument #2 ($haystack) must be of type array, bool given"
  ["string":"Error":private]=>
  string(0) ""
  ["code":protected]=>
  int(0)
  ["file":protected]=>
  string(58) "/var/www/accesscard.online/class/Provider/CategoryList.php"
  ["line":protected]=>
  int(19)
  ["trace":"Error":private]=>
  array(13) {
    [0]=>
    array(3) {
      ["file"]=>
      string(58) "/var/www/accesscard.online/class/Provider/CategoryList.php"
      ["line"]=>
      int(19)
      ["function"]=>
      string(12) "array_search"
    }
    [1]=>
    array(5) {
      ["file"]=>
      string(50) "/var/www/accesscard.online/class/ServiceLoader.php"
      ["line"]=>
      int(36)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(43) "Nimbus\AccessCardSite\Provider\CategoryList"
      ["type"]=>
      string(2) "->"
    }
    [2]=>
    array(3) {
      ["function"]=>
      string(16) "loadCategoryList"
      ["class"]=>
      string(35) "Nimbus\AccessCardSite\ServiceLoader"
      ["type"]=>
      string(2) "->"
    }
    [3]=>
    array(5) {
      ["file"]=>
      string(73) "/var/www/accesscard.online/vendor/phpgt/servicecontainer/src/Injector.php"
      ["line"]=>
      int(66)
      ["function"]=>
      string(6) "invoke"
      ["class"]=>
      string(18) "ReflectionFunction"
      ["type"]=>
      string(2) "->"
    }
    [4]=>
    array(5) {
      ["file"]=>
      string(74) "/var/www/accesscard.online/vendor/phpgt/servicecontainer/src/Container.php"
      ["line"]=>
      int(82)
      ["function"]=>
      string(6) "invoke"
      ["class"]=>
      string(28) "Gt\ServiceContainer\Injector"
      ["type"]=>
      string(2) "->"
    }
    [5]=>
    array(5) {
      ["file"]=>
      string(73) "/var/www/accesscard.online/vendor/phpgt/servicecontainer/src/Injector.php"
      ["line"]=>
      int(46)
      ["function"]=>
      string(3) "get"
      ["class"]=>
      string(29) "Gt\ServiceContainer\Container"
      ["type"]=>
      string(2) "->"
    }
    [6]=>
    array(5) {
      ["file"]=>
      string(77) "/var/www/accesscard.online/vendor/phpgt/webengine/src/Logic/LogicExecutor.php"
      ["line"]=>
      int(80)
      ["function"]=>
      string(6) "invoke"
      ["class"]=>
      string(28) "Gt\ServiceContainer\Injector"
      ["type"]=>
      string(2) "->"
    }
    [7]=>
    array(5) {
      ["file"]=>
      string(83) "/var/www/accesscard.online/vendor/phpgt/webengine/src/Middleware/RequestHandler.php"
      ["line"]=>
      int(407)
      ["function"]=>
      string(6) "invoke"
      ["class"]=>
      string(32) "Gt\WebEngine\Logic\LogicExecutor"
      ["type"]=>
      string(2) "->"
    }
    [8]=>
    array(5) {
      ["file"]=>
      string(83) "/var/www/accesscard.online/vendor/phpgt/webengine/src/Middleware/RequestHandler.php"
      ["line"]=>
      int(138)
      ["function"]=>
      string(20) "handleLogicExecution"
      ["class"]=>
      string(38) "Gt\WebEngine\Middleware\RequestHandler"
      ["type"]=>
      string(2) "->"
    }
    [9]=>
    array(5) {
      ["file"]=>
      string(83) "/var/www/accesscard.online/vendor/phpgt/webengine/src/Middleware/RequestHandler.php"
      ["line"]=>
      int(103)
      ["function"]=>
      string(23) "completeRequestHandling"
      ["class"]=>
      string(38) "Gt\WebEngine\Middleware\RequestHandler"
      ["type"]=>
      string(2) "->"
    }
    [10]=>
    array(5) {
      ["file"]=>
      string(78) "/var/www/accesscard.online/vendor/phpgt/webengine/src/Middleware/Lifecycle.php"
      ["line"]=>
      int(145)
      ["function"]=>
      string(6) "handle"
      ["class"]=>
      string(38) "Gt\WebEngine\Middleware\RequestHandler"
      ["type"]=>
      string(2) "->"
    }
    [11]=>
    array(5) {
      ["file"]=>
      string(78) "/var/www/accesscard.online/vendor/phpgt/webengine/src/Middleware/Lifecycle.php"
      ["line"]=>
      int(97)
      ["function"]=>
      string(7) "process"
      ["class"]=>
      string(33) "Gt\WebEngine\Middleware\Lifecycle"
      ["type"]=>
      string(2) "->"
    }
    [12]=>
    array(5) {
      ["file"]=>
      string(56) "/var/www/accesscard.online/vendor/phpgt/webengine/go.php"
      ["line"]=>
      int(49)
      ["function"]=>
      string(5) "start"
      ["class"]=>
      string(33) "Gt\WebEngine\Middleware\Lifecycle"
      ["type"]=>
      string(2) "->"
    }
  }
  ["previous":"Error":private]=>
  NULL
}