Skip to content

Commit f4da336

Browse files
Merge branch '4.4'
* 4.4: Add return types to internal & magic methods when possible fixed CSC Add Address::fromString [DomCrawler] Added Crawler::matches(), ::closest(), ::outerHtml()
2 parents ed0c4e5 + 33aadbe commit f4da336

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Exception/AuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getMessageData()
102102
/**
103103
* @internal
104104
*/
105-
public function __sleep()
105+
public function __sleep(): array
106106
{
107107
$this->serialized = $this->__serialize();
108108

Tests/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function __serialize(): array
119119
{
120120
}
121121

122-
public function serialize()
122+
public function serialize(): string
123123
{
124124
}
125125

Tests/Authentication/Token/AbstractTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function __construct($name)
173173
$this->name = $name;
174174
}
175175

176-
public function __toString()
176+
public function __toString(): string
177177
{
178178
return $this->name;
179179
}

Tests/SecurityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function createContainer($serviceId, $serviceObject)
100100

101101
class StringishUser
102102
{
103-
public function __toString()
103+
public function __toString(): string
104104
{
105105
return 'stringish_user';
106106
}

0 commit comments

Comments
 (0)