@@ -190,7 +190,7 @@ public function getNextOfTypeAndFlag(TokenType $type, int $flag): Token|null
190190     * @param int|null $offset the offset to be set 
191191     * @param Token    $value  the token to be saved 
192192     */ 
193-     public  function  offsetSet ($ offset , $ value ): void 
193+     public  function  offsetSet (mixed   $ offset ,  mixed  $ value ): void 
194194    {
195195        if  ($ offset  === null ) {
196196            $ this  ->tokens [$ this  ->count ++] = $ value ;
@@ -204,7 +204,7 @@ public function offsetSet($offset, $value): void
204204     * 
205205     * @param int $offset the offset to be returned 
206206     */ 
207-     public  function  offsetGet ($ offset ): Token  |null 
207+     public  function  offsetGet (mixed   $ offset ): Token  |null 
208208    {
209209        return  $ offset  < $ this  ->count  ? $ this  ->tokens [$ offset ] : null ;
210210    }
@@ -214,7 +214,7 @@ public function offsetGet($offset): Token|null
214214     * 
215215     * @param int $offset the offset to be checked 
216216     */ 
217-     public  function  offsetExists ($ offset ): bool 
217+     public  function  offsetExists (mixed   $ offset ): bool 
218218    {
219219        return  $ offset  < $ this  ->count ;
220220    }
@@ -224,7 +224,7 @@ public function offsetExists($offset): bool
224224     * 
225225     * @param int $offset the offset to be unset 
226226     */ 
227-     public  function  offsetUnset ($ offset ): void 
227+     public  function  offsetUnset (mixed   $ offset ): void 
228228    {
229229        unset($ this  ->tokens [$ offset ]);
230230        --$ this  ->count ;
0 commit comments