Skip to content

Commit

Permalink
Test missing return typehints as well
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 10, 2022
1 parent 8edf13a commit e512619
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/MethodSignatureTest.php
Expand Up @@ -1587,6 +1587,19 @@ public function test() {
false,
'8.0'
],
'noTypehintInNativeDescendant' => [
'<?php
class a implements JsonSerializable {
public function jsonSerialize() {
return 0;
}
}
',
'error_message' => 'MethodSignatureMismatch',
[],
false,
'8.1'
],
];
}
}

0 comments on commit e512619

Please sign in to comment.