You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader must be compatible with PsrExt\Cache\CacheItemInterface::expiresAt($expiration) #48934
[KO]
Script cache:clear returned with error code 255
!!
!! Fatal error: Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader must be compatible with PsrExt\Cache\CacheItemInterface::expiresAt($expiration) in C:\xampp\htdocs\my_project_directory\vendor\symfony\cache\CacheItem.php on line 65
!! Symfony\Component\ErrorHandler\Error\FatalError {#57
!! #message: "Compile Error: Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader must be compatible with PsrExt\Cache\CacheItemInterface::expiresAt($expiration)"
!! #code: 0
!! #file: "C:\xampp\htdocs\my_project_directory\vendor\symfony\cache\CacheItem.php"
!! #line: 65
!! -error: array:4 [
!! "type" => 64
!! "message" => "Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader must be compatible with PsrExt\Cache\CacheItemInterface::expiresAt($expiration)"
!! "file" => "C:\xampp\htdocs\my_project_directory\vendor\symfony\cache\CacheItem.php"
!! "line" => 65
!! ]
!! }
!! PHP Fatal error: Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader must be compatible with PsrExt\Cache\CacheItemInterface::expiresAt($expiration) in C:\xampp\htdocs\my_project_directory\vendor\symfony\cache\CacheItem.php on line 65
!!
Script @auto-scripts was called via post-update-cmd
PS C:\xampp\htdocs>
How to reproduce
Attempted through PowerShell :
PS C:\xampp\htdocs> composer create-project symfony/skeleton:"6.2.*" my_project_directory
Also happened when trying to install the guestbook project through symfony cli.