Skip to content

Commit

Permalink
Typo fix + remove todo that is done
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveRandom committed Mar 31, 2017
1 parent f43b7ff commit e6aceed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -25,7 +25,7 @@ $tests = [
function ($a, $b, $c): ?string {}, // true - arguments are contravariant
function (A $a, B $b): ?string {}, // true - extra args don't cause errors
function (C $a, B $b, $c): ?string {}, // true if C is a supertype of A, false otherwise
function (A $a, B $b, $c): string {}, // true, return types are convariant
function (A $a, B $b, $c): string {}, // true, return types are covariant
];

foreach ($tests as $test) {
Expand All @@ -42,4 +42,3 @@ foreach ($tests as $test) {

- Lots more tests
- Explain (text explanation of why callback does not validate)
- Check PHP 7.0 support

0 comments on commit e6aceed

Please sign in to comment.