<?php
function replaceArgument($index, $argument)
{
if ($index < 0 || $index > count($this->arguments) - 1) {
throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1));
}
$this->arguments[$index] = $argument;
return $this;
}
replaceArgument(1, null);
Fatal error: Uncaught Error: Using $this when not in object context in /in/OqGqZ:5
Stack trace:
#0 /in/OqGqZ(14): replaceArgument(1, NULL)
#1 {main}
thrown in /in/OqGqZ on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Fatal error: Using $this when not in object context in /in/OqGqZ on line 5
Process exited with code 255.