Skip to content

Symfony 8 incompatible with Clockwork v5.3.5 #756

@Anarchick

Description

@Anarchick

Clockwork 5.3.5 is not compatible with Symfony 8

PHP Fatal error:  Declaration of Clockwork\Support\Symfony\ClockworkExtension::getConfiguration(array $config, Symfony\Component\DependencyInjection\ContainerBuilder $container) must be compatible with Symfony\Component\DependencyInjection\Extension\Extension::getConfiguration(array $config, Symfony\Component\DependencyInjection\ContainerBuilder $container): ?Symfony\Component\Config\Definition\ConfigurationInterface in C:\Users\aeim\Documents\WEB\Spendoa\backend\vendor\itsgoingd\clockwork\Clockwork\Support\Symfony\ClockworkExtension.php on line 18

The hotfix is :

# Symfony\ClockworkExtension L18
public function getConfiguration(array $config, ContainerBuilder $container): ?\Symfony\Component\Config\Definition\ConfigurationInterface

# Symfony\ClockworkListener L42
public static function getSubscribedEvents(): array

but there are more errors elsewhere to fix.

Note : On the main page, you may indicate the file config\package\web_profiler for
"Clockwork uses the Symfony profiler as the data provider, make sure it is enabled:

framework:
profiler: { collect: true }"

  • require symfony\profiler-pack :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions