/** * @return callable[] */ public function getBindings() : array { if (!isset($this->cache[__FUNCTION__])) { /** @var RouteCollection $collection */ $collection = $this->collection; $this->cache[__FUNCTION__] = parent::getBindings() + $collection->getBindings(); } return $this->cache[__FUNCTION__]; }