diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 761809b..595dd4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,9 @@ jobs: - php: '8.2' env: SYMFONY_REQUIRE: "*" + - php: '8.3' + env: + SYMFONY_REQUIRE: "*" - php: '7.2' env: COMPOSER_FLAGS: "--prefer-lowest" diff --git a/src/DependencyInjection/RokkaClientExtension.php b/src/DependencyInjection/RokkaClientExtension.php index 8320c97..dd7d18b 100644 --- a/src/DependencyInjection/RokkaClientExtension.php +++ b/src/DependencyInjection/RokkaClientExtension.php @@ -50,7 +50,7 @@ public function load(array $configs, ContainerBuilder $container): void // set the command name prefix argument for rokka commands // we need to loop over all services of this bundle, if we use findTaggedServiceIds, things explode later inside Symfony. foreach ($container->getDefinitions() as $name => $definition) { - if (0 === strpos($name, 'rokka.command.') && $definition->hasTag('console.command')) { + if (str_starts_with($name, 'rokka.command.') && $definition->hasTag('console.command')) { $tagAttributes = $definition->getTag('console.command')[0]; if (\array_key_exists('command', $tagAttributes)) { if (interface_exists(CommandLoaderInterface::class)) { // since symfony 3.4