Skip to content

Commit 4763e6a

Browse files
Merge branch '4.4' into 5.4
* 4.4: CS fixes Bump Symfony version to 4.4.44 Update VERSION for 4.4.43 Update CONTRIBUTORS for 4.4.43 Update CHANGELOG for 4.4.43
2 parents fcaf47f + 254b083 commit 4763e6a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Signature/SignatureHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function computeSignatureHash(UserInterface $user, int $expires): string
8787
$value = $value->format('c');
8888
}
8989

90-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
90+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
9191
throw new \InvalidArgumentException(sprintf('The property path "%s" on the user object "%s" must return a value that can be cast to a string, but "%s" was returned.', $property, \get_class($user), get_debug_type($value)));
9292
}
9393
$signatureFields[] = base64_encode($value);

Tests/Authorization/AccessDecisionManagerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ public function decide(\Traversable $results): bool
9696
$i = 0;
9797
foreach ($results as $result) {
9898
switch ($i++) {
99-
case 0:
100-
Assert::assertSame(VoterInterface::ACCESS_DENIED, $result);
99+
case 0:
100+
Assert::assertSame(VoterInterface::ACCESS_DENIED, $result);
101101

102-
break;
103-
case 1:
104-
Assert::assertSame(VoterInterface::ACCESS_GRANTED, $result);
102+
break;
103+
case 1:
104+
Assert::assertSame(VoterInterface::ACCESS_GRANTED, $result);
105105

106-
return true;
107-
}
106+
return true;
107+
}
108108
}
109109

110110
return false;

Tests/Authorization/Voter/AuthenticatedVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testSupportsType()
114114

115115
$this->assertTrue($voter->supportsType(get_debug_type('foo')));
116116
$this->assertTrue($voter->supportsType(get_debug_type(null)));
117-
$this->assertTrue($voter->supportsType(get_debug_type(new \StdClass())));
117+
$this->assertTrue($voter->supportsType(get_debug_type(new \stdClass())));
118118
}
119119

120120
protected function getToken($authenticated)

Tests/Authorization/Voter/RoleVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testSupportsType()
8686

8787
$this->assertTrue($voter->supportsType(get_debug_type('foo')));
8888
$this->assertTrue($voter->supportsType(get_debug_type(null)));
89-
$this->assertTrue($voter->supportsType(get_debug_type(new \StdClass())));
89+
$this->assertTrue($voter->supportsType(get_debug_type(new \stdClass())));
9090
}
9191

9292
protected function getTokenWithRoleNames(array $roles)

0 commit comments

Comments
 (0)