Skip to content

Commit 915f596

Browse files
committed
Fix CI
1 parent c75b075 commit 915f596

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/Compiler/IntegrationTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
use Symfony\Component\DependencyInjection\Tests\Fixtures\TaggedService3;
5656
use Symfony\Component\DependencyInjection\Tests\Fixtures\TaggedService3Configurator;
5757
use Symfony\Component\DependencyInjection\Tests\Fixtures\TaggedService4;
58+
use Symfony\Contracts\Service\Attribute\SubscribedService;
5859
use Symfony\Contracts\Service\ServiceProviderInterface;
5960
use Symfony\Contracts\Service\ServiceSubscriberInterface;
6061

@@ -391,6 +392,10 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethod()
391392

392393
public function testLocatorConfiguredViaAttribute()
393394
{
395+
if (!property_exists(SubscribedService::class, 'type')) {
396+
$this->markTestSkipped('Requires symfony/service-contracts >= 3.2');
397+
}
398+
394399
$container = new ContainerBuilder();
395400
$container->setParameter('some.parameter', 'foo');
396401
$container->register(BarTagClass::class)

0 commit comments

Comments
 (0)