Closed zlodes closed 4 years ago
if (!$this->container) { $this->container = $this->factory->createExtendedContainer($this->resolver); } return $this->container;
Factory::createExtendedContainer() always returns Container instance:
/** * @inheritdoc */ public function createExtendedContainer(ResolverInterface $resolver) { return new Container($this->container, $resolver); }
This generates phpstan errors:
------------------------------------------------------------------------- Line Base/Schema.php ------------------------------------------------------------------------- 48 Cannot call method getAdapterByResourceType() on CloudCreativity\LaravelJsonApi\Contracts\ContainerInterface|null. -------------------------------------------------------------------------
On this code:
/** @var Adapter $adapter */ $adapter = json_api()->getContainer()->getAdapterByResourceType( $this->resourceType );
Thanks!
Factory::createExtendedContainer() always returns Container instance:
This generates phpstan errors:
On this code: