Fix the PHPStan report about passing in arguments into empty constructor

This commit is contained in:
Tautvidas Sipavičius
2019-01-24 15:20:29 +02:00
parent 3db4de6ec6
commit f719ae69c5
2 changed files with 1 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class ContainerWrapper implements ContainerInterface {
} }
private static function createPremiumContainer(ContainerInterface $free_container, $debug = false) { private static function createPremiumContainer(ContainerInterface $free_container, $debug = false) {
$premium_container_factory = new ContainerFactory(new \MailPoet\Premium\DI\ContainerConfigurator($free_container), $debug); $premium_container_factory = new ContainerFactory(new \MailPoet\Premium\DI\ContainerConfigurator(), $debug);
$premium_container = $premium_container_factory->getContainer(); $premium_container = $premium_container_factory->getContainer();
$premium_container->set(IContainerConfigurator::FREE_CONTAINER_SERVICE_SLUG, $free_container); $premium_container->set(IContainerConfigurator::FREE_CONTAINER_SERVICE_SLUG, $free_container);
$free_container->set(IContainerConfigurator::PREMIUM_CONTAINER_SERVICE_SLUG, $premium_container); $free_container->set(IContainerConfigurator::PREMIUM_CONTAINER_SERVICE_SLUG, $premium_container);

View File

@@ -4,5 +4,4 @@ parameters:
ignoreErrors: ignoreErrors:
- '#Function members_register_.+ not found#' - '#Function members_register_.+ not found#'
- '#MailPoet\\Premium\\DI\\ContainerConfigurator not found#' # this class is not available when premium is not active - '#MailPoet\\Premium\\DI\\ContainerConfigurator not found#' # this class is not available when premium is not active
- '#Class MailPoet\\Premium\\DI\\ContainerConfigurator does not have a constructor#'
reportUnmatchedIgnoredErrors: false reportUnmatchedIgnoredErrors: false