Skip to content

Clock component breaks preload #51180

Closed
Closed
@andriusvo

Description

@andriusvo

Symfony version(s) affected

6.2 / 6.3

Description

While using Symfony Clock component and using preload, this raises an issue:

PHP message: PHP Fatal error: Cannot redeclare Symfony\Component\Clock\now() (previously declared in vendor/symfony/clock/Resources/now.php:22

How to reproduce

  1. Install symfony/clock component
  2. Use PHP opcache preload function
  3. Reload the page, check the error

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