Skip to content

Commit

Permalink
Fix TokenCollection
Browse files Browse the repository at this point in the history
Adjust `TokenCollection::get()` method to return null, for consistency
with `ArrayList::get`.
  • Loading branch information
cristianoc72 committed Mar 6, 2020
1 parent 7bee95c commit 88ccc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TokenCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TokenCollection extends ArrayList {
*
* @return Token
*/
public function get(int $index): Token {
public function get(int $index): ?Token {
return parent::get($index);
}
}

0 comments on commit 88ccc61

Please sign in to comment.