Skip to content

Commit 5fd79f6

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: fix password parameter name clean up PHP 8.0 version checks
2 parents db5ef7f + 6ff1223 commit 5fd79f6

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

src/Symfony/Component/HttpKernel/Tests/DataCollector/DataCollectorTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public function testCloneVarExistingFilePath()
3838
$this->assertSame($filePath, $c->getData()[0]);
3939
}
4040

41-
/**
42-
* @requires PHP 8
43-
*/
4441
public function testClassPublicObjectProperty()
4542
{
4643
$parent = new WithPublicObjectProperty();
@@ -54,9 +51,6 @@ public function testClassPublicObjectProperty()
5451
$this->assertNotNull($c->getData()->parent);
5552
}
5653

57-
/**
58-
* @requires PHP 8
59-
*/
6054
public function testClassPublicObjectPropertyAsReference()
6155
{
6256
$parent = new WithPublicObjectProperty();
@@ -70,9 +64,6 @@ public function testClassPublicObjectPropertyAsReference()
7064
$this->assertNotNull($c->getData()->parent);
7165
}
7266

73-
/**
74-
* @requires PHP 8
75-
*/
7667
public function testClassUsePropertyInDestruct()
7768
{
7869
$parent = new UsePropertyInDestruct();
@@ -86,9 +77,6 @@ public function testClassUsePropertyInDestruct()
8677
$this->assertNotNull($c->getData()->parent);
8778
}
8879

89-
/**
90-
* @requires PHP 8
91-
*/
9280
public function testClassUsePropertyAsReferenceInDestruct()
9381
{
9482
$parent = new UsePropertyInDestruct();

src/Symfony/Component/Security/Http/Tests/Authenticator/FormLoginAuthenticatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function __toString()
170170
*/
171171
public function testHandleNonStringCsrfTokenWithArray($postOnly)
172172
{
173-
$request = Request::create('/login_check', 'POST', ['_username' => 'foo', 'password' => 'bar', '_csrf_token' => []]);
173+
$request = Request::create('/login_check', 'POST', ['_username' => 'foo', '_password' => 'bar', '_csrf_token' => []]);
174174
$request->setSession($this->createSession());
175175

176176
$this->setUpAuthenticator(['post_only' => $postOnly]);
@@ -186,7 +186,7 @@ public function testHandleNonStringCsrfTokenWithArray($postOnly)
186186
*/
187187
public function testHandleNonStringCsrfTokenWithInt($postOnly)
188188
{
189-
$request = Request::create('/login_check', 'POST', ['_username' => 'foo', 'password' => 'bar', '_csrf_token' => 42]);
189+
$request = Request::create('/login_check', 'POST', ['_username' => 'foo', '_password' => 'bar', '_csrf_token' => 42]);
190190
$request->setSession($this->createSession());
191191

192192
$this->setUpAuthenticator(['post_only' => $postOnly]);
@@ -202,7 +202,7 @@ public function testHandleNonStringCsrfTokenWithInt($postOnly)
202202
*/
203203
public function testHandleNonStringCsrfTokenWithObject($postOnly)
204204
{
205-
$request = Request::create('/login_check', 'POST', ['_username' => 'foo', 'password' => 'bar', '_csrf_token' => new \stdClass()]);
205+
$request = Request::create('/login_check', 'POST', ['_username' => 'foo', '_password' => 'bar', '_csrf_token' => new \stdClass()]);
206206
$request->setSession($this->createSession());
207207

208208
$this->setUpAuthenticator(['post_only' => $postOnly]);

src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function isGetMethod(\ReflectionMethod $method): bool
9898
private function isSetMethod(\ReflectionMethod $method): bool
9999
{
100100
return !$method->isStatic()
101-
&& (\PHP_VERSION_ID < 80000 || !$method->getAttributes(Ignore::class))
101+
&& !$method->getAttributes(Ignore::class)
102102
&& 1 === $method->getNumberOfRequiredParameters()
103103
&& str_starts_with($method->name, 'set');
104104
}

src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function hasAttributeAccessorMethod(string $class, string $attribute): b
201201
$method = $reflection->getMethod($attribute);
202202

203203
return !$method->isStatic()
204-
&& (\PHP_VERSION_ID < 80000 || !$method->getAttributes(Ignore::class))
204+
&& !$method->getAttributes(Ignore::class)
205205
&& !$method->getNumberOfRequiredParameters();
206206
}
207207
}

0 commit comments

Comments
 (0)