Skip to content

Commit a3e0c68

Browse files
committed
Add return type to __toString() methods
1 parent 731acfa commit a3e0c68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Generator/UrlGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ protected function getRoutes($name, Route $route)
10761076

10771077
class StringableObject
10781078
{
1079-
public function __toString()
1079+
public function __toString(): string
10801080
{
10811081
return 'bar';
10821082
}
@@ -1086,7 +1086,7 @@ class StringableObjectWithPublicProperty
10861086
{
10871087
public $foo = 'property';
10881088

1089-
public function __toString()
1089+
public function __toString(): string
10901090
{
10911091
return 'bar';
10921092
}

0 commit comments

Comments
 (0)