8000 Fatal error: Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader must be compatible with PsrExt\Cache\CacheItemInterface::expiresAt($expiration) · Issue #48934 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
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
Closed
@GeneralFutz

Description

@GeneralFutz

Symfony version(s) affected

current

Description

[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.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0