*
* @return bool
*/
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
return isset($this->tokenProcessor->rowContexts[$this->tokenRow][$offset])
|| isset($this->tokenProcessor->context[$offset]);
}
*
* @return string
*/
+ #[\ReturnTypeWillChange]
public function &offsetGet($offset) {
if (isset($this->tokenProcessor->rowContexts[$this->tokenRow][$offset])) {
return $this->tokenProcessor->rowContexts[$this->tokenRow][$offset];
* @param string $offset
* @param mixed $value
*/
- public function offsetSet($offset, $value) {
+ public function offsetSet($offset, $value): void {
$this->tokenProcessor->rowContexts[$this->tokenRow][$offset] = $value;
}
*
* @param mixed $offset
*/
- public function offsetUnset($offset) {
+ public function offsetUnset($offset): void {
unset($this->tokenProcessor->rowContexts[$this->tokenRow][$offset]);
}
*
* @return \ArrayIterator
*/
+ #[\ReturnTypeWillChange]
public function getIterator() {
return new \ArrayIterator($this->createMergedArray());
}
*
* @return int
*/
- public function count() {
+ public function count(): int {
return count($this->createMergedArray());
}