From 88ccc61e6e0996bf94480d264b42d41106198fab Mon Sep 17 00:00:00 2001 From: Cristiano Cinotti Date: Wed, 4 Mar 2020 18:08:45 +0100 Subject: [PATCH] Fix TokenCollection Adjust `TokenCollection::get()` method to return null, for consistency with `ArrayList::get`. --- TokenCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TokenCollection.php b/TokenCollection.php index 6ab4295..85cc8c5 100644 --- a/TokenCollection.php +++ b/TokenCollection.php @@ -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); } }