Skip to content

Commit 5a4362b

Browse files
nicolas-grekasfabpot
authored andcommitted
Bump minimum version of PHP to 8.1
1 parent c5617ff commit 5a4362b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Tests/RouterTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public function testMatchRequestWithUrlMatcherInterface()
137137
$matcher->expects($this->once())->method('match');
138138

139139
$p = new \ReflectionProperty($this->router, 'matcher');
140-
$p->setAccessible(true);
141140
$p->setValue($this->router, $matcher);
142141

143142
$this->router->matchRequest(Request::create('/'));
@@ -149,7 +148,6 @@ public function testMatchRequestWithRequestMatcherInterface()
149148
$matcher->expects($this->once())->method('matchRequest');
150149

151150
$p = new \ReflectionProperty($this->router, 'matcher');
152-
$p->setAccessible(true);
153151
$p->setValue($this->router, $matcher);
154152

155153
$this->router->matchRequest(Request::create('/'));
@@ -170,7 +168,6 @@ public function testDefaultLocaleIsPassedToGeneratorClass()
170168
$this->assertInstanceOf(UrlGeneratorInterface::class, $generator);
171169

172170
$p = new \ReflectionProperty($generator, 'defaultLocale');
173-
$p->setAccessible(true);
174171

175172
$this->assertSame('hr', $p->getValue($generator));
176173
}
@@ -190,7 +187,6 @@ public function testDefaultLocaleIsPassedToCompiledGeneratorCacheClass()
190187
$this->assertInstanceOf(UrlGeneratorInterface::class, $generator);
191188

192189
$p = new \ReflectionProperty($generator, 'defaultLocale');
193-
$p->setAccessible(true);
194190

195191
$this->assertSame('hr', $p->getValue($generator));
196192
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=8.0.2"
19+
"php": ">=8.1"
2020
},
2121
"require-dev": {
2222
"symfony/config": "^5.4|^6.0",

0 commit comments

Comments
 (0)