for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the ConfigResolverCleanup class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
*/
namespace eZ\Bundle\EzPublishCoreBundle\Cache\Warmer;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
* This cache warmer ensures that ConfigResolver is correctly reset after cache warmup process.
* @link https://jira.ez.no/browse/EZP-25098
class ConfigResolverCleanup implements CacheWarmerInterface
{
use ContainerAwareTrait;
public function isOptional()
return false;
}
public function warmUp($cacheDir)
$this->container->set('ezpublish.config.resolver.core', null);
null
object
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
$this->container->set('ezpublish.config.resolver.chain', null);
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: