code: public function offsetSet($offset, $value): void
      {
          if ($value === null) {
              $this->offsetUnset($offset);
          }
          if ($offset === null) {
              $this->rpush($value);
          } elseif (\is_int($offset)) {
              $this->set($offset, $value);
          }
      }
docs: {@inheritDoc}