Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../lib/twig/src/RuntimeL...
File: ContainerRuntimeLoader.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of Twig.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Fabien Potencier
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
namespace WPML\Core\Twig\RuntimeLoader;
[10] Fix | Delete
[11] Fix | Delete
use WPML\Core\Psr\Container\ContainerInterface;
[12] Fix | Delete
/**
[13] Fix | Delete
* Lazily loads Twig runtime implementations from a PSR-11 container.
[14] Fix | Delete
*
[15] Fix | Delete
* Note that the runtime services MUST use their class names as identifiers.
[16] Fix | Delete
*
[17] Fix | Delete
* @author Fabien Potencier <fabien@symfony.com>
[18] Fix | Delete
* @author Robin Chalas <robin.chalas@gmail.com>
[19] Fix | Delete
*/
[20] Fix | Delete
class ContainerRuntimeLoader implements \WPML\Core\Twig\RuntimeLoader\RuntimeLoaderInterface
[21] Fix | Delete
{
[22] Fix | Delete
private $container;
[23] Fix | Delete
public function __construct(\WPML\Core\Psr\Container\ContainerInterface $container)
[24] Fix | Delete
{
[25] Fix | Delete
$this->container = $container;
[26] Fix | Delete
}
[27] Fix | Delete
public function load($class)
[28] Fix | Delete
{
[29] Fix | Delete
if ($this->container->has($class)) {
[30] Fix | Delete
return $this->container->get($class);
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
\class_alias('WPML\\Core\\Twig\\RuntimeLoader\\ContainerRuntimeLoader', 'WPML\\Core\\Twig_ContainerRuntimeLoader');
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function