mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
minor #3840 Suppress native return type deprecation msg (PhilETaylor)
This PR was merged into the 3.x branch.
Discussion
----------
Suppress native return type deprecation msg
> Method "Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load()" might add "void" as a native return type declaration in the future. Do the same in implementation "Twig\Extra\TwigExtraBundle\DependencyInjection\TwigExtraExtension" now to avoid errors or add an explicit ``@return`` annotation to suppress this message.
Commits
-------
72d6f205 suppress native return type deprecation msg
This commit is contained in:
@@ -18,6 +18,7 @@ use Twig\Environment;
|
||||
|
||||
class MissingExtensionSuggestorPass implements CompilerPassInterface
|
||||
{
|
||||
/** @return void */
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
if ($container->getParameter('kernel.debug')) {
|
||||
|
||||
@@ -23,6 +23,7 @@ use Twig\Extra\TwigExtraBundle\Extensions;
|
||||
*/
|
||||
class TwigExtraExtension extends Extension
|
||||
{
|
||||
/** @return void */
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$loader = new PhpFileLoader($container, new FileLocator(\dirname(__DIR__).'/Resources/config'));
|
||||
|
||||
Reference in New Issue
Block a user