Skip to content

Commit cd88657

Browse files
author
Renan de Lima
authored
Merge pull request #42 from acsiomatic/sf72
Symfony 7.2 support
2 parents d7041e2 + d67fb91 commit cd88657

7 files changed

Lines changed: 27 additions & 25 deletions

File tree

.github/workflows/phpunit.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
strategy:
2323
matrix:
2424
include:
25-
- { dd: '6.1.*', sf: '5.4.*', php: '8.1', is_next: false }
26-
- { dd: '6.1.*', sf: '6.4.*', php: '8.2', is_next: false }
27-
- { dd: '6.1.*', sf: '7.0.*', php: '8.3', is_next: false }
25+
- { dd: '6.4.*', sf: '5.4.*', php: '8.1', is_next: false }
26+
- { dd: '6.4.*', sf: '6.4.*', php: '8.2', is_next: false }
27+
- { dd: '6.4.*', sf: '7.0.*', php: '8.3', is_next: false }
28+
- { dd: '6.4.*', sf: '7.1.*', php: '8.3', is_next: false }
29+
- { dd: '6.4.*', sf: '7.2.*', php: '8.3', is_next: false }
2830

2931
steps:
3032

src/Factory/DeviceDetectorProxyFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function createDeviceDetectorProxy(): DeviceDetector
5959
return (new AccessInterceptorValueHolderFactory($configuration))
6060
->createProxy(
6161
$instance,
62-
$prefixInterceptors
62+
$prefixInterceptors,
6363
);
6464
}
6565

@@ -89,7 +89,7 @@ private function buildAutoParserCallerForMagicCall(): callable
8989
AccessInterceptorInterface $proxy,
9090
DeviceDetector $real,
9191
string $method,
92-
array $arguments
92+
array $arguments,
9393
): void {
9494
if (!$real->isParsed() && 0 === stripos($arguments['methodName'] ?? '', 'is')) {
9595
$real->parse();
@@ -107,7 +107,7 @@ private function buildAutoParserCaller(): callable
107107
{
108108
return static function (
109109
AccessInterceptorInterface $proxy,
110-
DeviceDetector $real
110+
DeviceDetector $real,
111111
): void {
112112
if (!$real->isParsed()) {
113113
$real->parse();

tests/ClientHintsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function testFactoryCreatesClientHintsFromRequest(): void
5252
$kernel->appendCompilerPass(
5353
CompilerPassFactory::createPublicAlias(
5454
'client_hints_factory.public',
55-
ClientHintsFactoryInterface::class
56-
)
55+
ClientHintsFactoryInterface::class,
56+
),
5757
);
5858

5959
$kernel->boot();

tests/RoutingConditionServiceTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ static function (ContainerBuilder $containerBuilder): void {
2727

2828
self::assertTrue($definition->hasTag('routing.condition_service'));
2929
self::assertSame([['alias' => 'device']], $definition->getTag('routing.condition_service'));
30-
}
31-
)
30+
},
31+
),
3232
);
3333

3434
$kernel->boot();
@@ -50,8 +50,8 @@ static function (ContainerBuilder $containerBuilder): void {
5050

5151
self::assertTrue($definition->hasTag('routing.condition_service'));
5252
self::assertSame([['alias' => 'custom']], $definition->getTag('routing.condition_service'));
53-
}
54-
)
53+
},
54+
),
5555
);
5656

5757
$kernel->boot();
@@ -69,8 +69,8 @@ public function testDisabling(): void
6969
static function (ContainerBuilder $containerBuilder): void {
7070
self::assertTrue($containerBuilder->hasDefinition(DeviceDetector::class));
7171
self::assertFalse($containerBuilder->getDefinition(DeviceDetector::class)->hasTag('routing.condition_service'));
72-
}
73-
)
72+
},
73+
),
7474
);
7575

7676
$kernel->boot();

tests/ServiceAvailabilityTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function testDeviceDetectorServiceExistsAndIsPrivate(): void
2525
static function (ContainerBuilder $containerBuilder): void {
2626
self::assertTrue($containerBuilder->hasDefinition(DeviceDetector::class));
2727
self::assertFalse($containerBuilder->getDefinition(DeviceDetector::class)->isPublic());
28-
}
29-
)
28+
},
29+
),
3030
);
3131

3232
$kernel->boot();
@@ -57,8 +57,8 @@ public function testDeviceDetectorFactoryService(): void
5757
$kernel->appendCompilerPass(
5858
CompilerPassFactory::createPublicAlias(
5959
'device_detector_factory.public',
60-
DeviceDetectorFactoryInterface::class
61-
)
60+
DeviceDetectorFactoryInterface::class,
61+
),
6262
);
6363

6464
$kernel->boot();

tests/Util/Compiler/CompilerPassFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static function (ContainerBuilder $containerBuilder) use ($alias, $id): void {
1717
$containerBuilder
1818
->setAlias($alias, $id)
1919
->setPublic(true);
20-
}
20+
},
2121
);
2222
}
2323

@@ -33,7 +33,7 @@ static function (ContainerBuilder $containerBuilder) use ($id): void {
3333
->register(sprintf('%s.traceable', $id), TraceableAdapter::class)
3434
->setDecoratedService($id, sprintf('%s.inner', $id))
3535
->addArgument(new Reference(sprintf('%s.inner', $id)));
36-
}
36+
},
3737
);
3838
}
3939
}

tests/VersionTruncationTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function testDefaultsTargetsToMinor(): void
2727
$kernel->appendCompilerPass(
2828
CompilerPassFactory::createPublicAlias(
2929
'device_detector_factory.public',
30-
DeviceDetectorFactoryInterface::class
31-
)
30+
DeviceDetectorFactoryInterface::class,
31+
),
3232
);
3333

3434
$kernel->boot();
@@ -49,7 +49,7 @@ public function testSetVersionTruncation(
4949
string $userAgent,
5050
string $truncation,
5151
string $expectedOsVersion,
52-
string $expectedClientVersion
52+
string $expectedClientVersion,
5353
): void {
5454
$kernel = new Kernel('test', true);
5555
$kernel->appendBundle(new FrameworkBundle());
@@ -60,8 +60,8 @@ public function testSetVersionTruncation(
6060
$kernel->appendCompilerPass(
6161
CompilerPassFactory::createPublicAlias(
6262
'device_detector_factory.public',
63-
DeviceDetectorFactoryInterface::class
64-
)
63+
DeviceDetectorFactoryInterface::class,
64+
),
6565
);
6666

6767
$kernel->boot();

0 commit comments

Comments
 (0)