Skip to content

Commit

Permalink
FIX typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveLiddament committed Jan 4, 2023
1 parent ccc9a83 commit f7401db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace Foo {

class Ringer
{
public function ring(Telephone $telephone): Person
public function ring(Telephone $telephone): void
{
$telephone->ring(); // ERROR - Can only all Telephone::ring() from namespace Bar
}
Expand All @@ -253,7 +253,7 @@ namespace Bar {

class AnotherRinger
{
public function ring(Telephone $telephone): Person
public function ring(Telephone $telephone): void
{
$telephone->ring(); // OK - Allowed to call Telephone::ring() from namespace Bar
}
Expand Down

0 comments on commit f7401db

Please sign in to comment.