Skip to content

updating to version 4.1.1 breaks cache:clear on composer update/install #27713

@gmponos

Description

@gmponos

Symfony version(s) affected: 4.1.1

Description
I am currently at version 4.1.0 and I run composer update and then this is the output that I am getting:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  
!!   // Clearing the cache for the dev environment with debug                       
!!   // true                                                                        
!!  
!!  19:34:27 CRITICAL  [php] Too few arguments to function Symfony\Bridge\Twig\Extension\CsrfExtension::__construct(), 0 passed in /vhosts/myproject/sf/var/cache/dev/ContainerH4ugX5h/srcDevDebugProjectContainer.php on line 853 and exactly 1 expected ["exception" => Symfony\Component\Debug\Exception\FatalThrowableError { …}] ["file" => "/vhosts/myproject/sf/vendor/symfony/debug/ErrorHandler.php","line" => 540,"class" => "Symfony\Component\Debug\ErrorHandler","function" => "handleException","unique_id" => "e0ed1ace-a969-469f-9eeb-d4cfa3f8633a"]
!!  
!!  In CsrfExtension.php line 25:
!!                                                                                 
!!    Too few arguments to function Symfony\Bridge\Twig\Extension\CsrfExtension::  
!!    __construct(), 0 passed in /vhosts/myproject/sf/var/cache/dev/Contain  
!!    erH4ugX5h/srcDevDebugProjectContainer.php on line 853 and exactly 1 expecte  
!!    d                                                                            
!!                                                                                 
!!  
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

I have also deleted var/cache and run again and the same thing happens.

How to reproduce

Not sure how.

Possible Solution
Not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions