Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Business/Metadata/DriverMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public function __construct(
private EntityFileConfigurationLocatorFactoryInterface $entityFileConfigurationLocatorFactory,
private DoctrinePluginConfigurationInterface $pluginConfiguration,
private ?CacheFacadeInterface $cacheFacade

Check failure on line 33 in src/Business/Metadata/DriverMetadataFactory.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

Property Micro\Plugin\Doctrine\Business\Metadata\DriverMetadataFactory::$cacheFacade has unknown class Micro\Plugin\Cache\Facade\CacheFacadeInterface as its type.

Check failure on line 33 in src/Business/Metadata/DriverMetadataFactory.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

Parameter $cacheFacade of method Micro\Plugin\Doctrine\Business\Metadata\DriverMetadataFactory::__construct() has invalid type Micro\Plugin\Cache\Facade\CacheFacadeInterface.
) {
}

Expand All @@ -43,7 +43,8 @@
return ORMSetup::createAttributeMetadataConfiguration(
$paths,
$this->pluginConfiguration->isDevMode(),
$proxyDir
$proxyDir,
$this->createCacheItem($emCfg)
);
}

Expand All @@ -54,7 +55,7 @@
return new ArrayAdapter();
}

if ($this->cacheFacade === null && $cacheItemPoolName) {

Check failure on line 58 in src/Business/Metadata/DriverMetadataFactory.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

Right side of && is always true.
throw new \RuntimeException(sprintf(
'Cache pool "%s" is configured for entity manager, but cache plugin is not enabled. Please, install `composer require micro/plugin-cache`',
$cacheItemPoolName
Expand All @@ -63,6 +64,6 @@



return $this->cacheFacade->getCachePsr16($configuration->getCacheItemPoolName());

Check failure on line 67 in src/Business/Metadata/DriverMetadataFactory.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

Call to method getCachePsr16() on an unknown class Micro\Plugin\Cache\Facade\CacheFacadeInterface.
}
}
Loading