Skip to content

Commit f7401db

Browse files
committed
FIX typo in README
1 parent ccc9a83 commit f7401db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ namespace Foo {
240240

241241
class Ringer
242242
{
243-
public function ring(Telephone $telephone): Person
243+
public function ring(Telephone $telephone): void
244244
{
245245
$telephone->ring(); // ERROR - Can only all Telephone::ring() from namespace Bar
246246
}
@@ -253,7 +253,7 @@ namespace Bar {
253253

254254
class AnotherRinger
255255
{
256-
public function ring(Telephone $telephone): Person
256+
public function ring(Telephone $telephone): void
257257
{
258258
$telephone->ring(); // OK - Allowed to call Telephone::ring() from namespace Bar
259259
}

0 commit comments

Comments
 (0)