Skip to content

Commit f3c2731

Browse files
[7.0] Bump to PHP 8.2 minimum
1 parent 64de79d commit f3c2731

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

LazyProxy/PhpDumper/LazyServiceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function getProxyCode(Definition $definition, string $id = null): string
133133
}
134134

135135
try {
136-
return (\PHP_VERSION_ID >= 80200 && $class?->isReadOnly() ? 'readonly ' : '').'class '.$proxyClass.ProxyHelper::generateLazyProxy($class, $interfaces);
136+
return ($class?->isReadOnly() ? 'readonly ' : '').'class '.$proxyClass.ProxyHelper::generateLazyProxy($class, $interfaces);
137137
} catch (LogicException $e) {
138138
throw new InvalidArgumentException(sprintf('Cannot generate lazy proxy for service "%s".', $id ?? $definition->getClass()), 0, $e);
139139
}

Tests/Compiler/AutowirePassTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ public function testTypeNotGuessableIntersectionType()
301301
$pass->process($container);
302302
}
303303

304-
/**
305-
* @requires PHP 8.2
306-
*/
307304
public function testTypeNotGuessableCompositeType()
308305
{
309306
$container = new ContainerBuilder();
@@ -435,9 +432,6 @@ public function testParameterWithNullUnionIsSkipped()
435432
$this->assertNull($definition->getArgument(0));
436433
}
437434

438-
/**
439-
* @requires PHP 8.2
440-
*/
441435
public function testParameterWithNullableIntersectionIsSkipped()
442436
{
443437
$container = new ContainerBuilder();

Tests/Fixtures/includes/autowiring_classes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
require __DIR__.'/uniontype_classes.php';
1010
require __DIR__.'/autowiring_classes_80.php';
1111
require __DIR__.'/intersectiontype_classes.php';
12-
if (\PHP_VERSION_ID >= 80200) {
13-
require __DIR__.'/compositetype_classes.php';
14-
}
12+
require __DIR__.'/compositetype_classes.php';
1513

1614
// @deprecated since Symfony 6.3, to be removed in 7.0
1715
class FooAnnotation

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=8.1",
19+
"php": ">=8.2",
2020
"psr/container": "^1.1|^2.0",
2121
"symfony/deprecation-contracts": "^2.5|^3",
2222
"symfony/service-contracts": "^2.5|^3.0",
23-
"symfony/var-exporter": "^6.2.10|^7.0"
23+
"symfony/var-exporter": "^6.4|^7.0"
2424
},
2525
"require-dev": {
26-
"symfony/yaml": "^5.4|^6.0|^7.0",
27-
"symfony/config": "^6.1|^7.0",
28-
"symfony/expression-language": "^5.4|^6.0|^7.0"
26+
"symfony/yaml": "^6.4|^7.0",
27+
"symfony/config": "^6.4|^7.0",
28+
"symfony/expression-language": "^6.4|^7.0"
2929
},
3030
"conflict": {
3131
"ext-psr": "<1.1|>=2",
32-
"symfony/config": "<6.1",
33-
"symfony/finder": "<5.4",
34-
"symfony/proxy-manager-bridge": "<6.3",
35-
"symfony/yaml": "<5.4"
32+
"symfony/config": "<6.4",
33+
"symfony/finder": "<6.4",
34+
"symfony/proxy-manager-bridge": "<6.4",
35+
"symfony/yaml": "<6.4"
3636
},
3737
"provide": {
3838
"psr/container-implementation": "1.1|2.0",

0 commit comments

Comments
 (0)