public function append($value) { if (!$value instanceof Argument) { throw new \InvalidArgumentException(sprintf('Controller arguments must be valid %s objects.', Argument::class), 1187953786); } $this->offsetSet(null, $value); }