Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@GeneralFutz

Description

@GeneralFutz
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.