function Token::offsetGet
@psalm-return ( O is 'value' ? V : ( O is 'type' ? T|null : ( O is 'position' ? int : mixed ) ) )
@template O of array-key
Parameters
O $offset:
Return value
mixed
Deprecated
Use the value, type or position property instead
File
-
vendor/
doctrine/ lexer/ src/ Token.php, line 101
Class
- Token
- @template T of UnitEnum|string|int @template V of string|int @implements ArrayAccess<string,mixed>
Namespace
Doctrine\Common\LexerCode
public function offsetGet($offset) {
Deprecation::trigger('doctrine/lexer', 'https://github.com/doctrine/lexer/pull/79', 'Accessing %s properties via ArrayAccess is deprecated, use the value, type or position property instead', self::class);
return $this->{$offset};
}