= $argumentsLength) { parent::setArguments($arguments); return; } if ($arguments[static::$errorArgumentPositionOffset] === -1) { array_splice($arguments, static::$errorArgumentPositionOffset, 1, [false]); parent::setArguments($arguments); return; } if ($arguments[static::$errorArgumentPositionOffset] < 0) { throw new UnexpectedValueException('Wrong error argument value or position offset'); } $argument = $arguments[static::$errorArgumentPositionOffset]; $argumentsBefore = array_slice($arguments, 0, static::$errorArgumentPositionOffset); $argumentsAfter = array_slice($arguments, static::$errorArgumentPositionOffset + 1); parent::setArguments(array_merge( $argumentsBefore, [self::$errorModifier], [$argument], $argumentsAfter )); } }