mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 14:58:43 +02:00
✅ Make unit tests working
This commit is contained in:
@@ -86,7 +86,7 @@ class PropertyPathBuilder
|
||||
public function remove(int $offset, int $length = 1)
|
||||
{
|
||||
if (!isset($this->elements[$offset])) {
|
||||
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
|
||||
throw new OutOfBoundsException(\sprintf('The offset "%s" is not within the property path.', $offset));
|
||||
}
|
||||
|
||||
$this->resize($offset, $length, 0);
|
||||
@@ -137,7 +137,7 @@ class PropertyPathBuilder
|
||||
public function replaceByIndex(int $offset, ?string $name = null)
|
||||
{
|
||||
if (!isset($this->elements[$offset])) {
|
||||
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
|
||||
throw new OutOfBoundsException(\sprintf('The offset "%s" is not within the property path.', $offset));
|
||||
}
|
||||
|
||||
if (null !== $name) {
|
||||
@@ -157,7 +157,7 @@ class PropertyPathBuilder
|
||||
public function replaceByProperty(int $offset, ?string $name = null)
|
||||
{
|
||||
if (!isset($this->elements[$offset])) {
|
||||
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
|
||||
throw new OutOfBoundsException(\sprintf('The offset "%s" is not within the property path.', $offset));
|
||||
}
|
||||
|
||||
if (null !== $name) {
|
||||
|
||||
Reference in New Issue
Block a user