Upgrade to 3.8.3

This commit is contained in:
Bastian Allgeier
2022-12-06 15:37:13 +01:00
parent f9e812cb0c
commit 8381ccb96c
69 changed files with 752 additions and 966 deletions

View File

@@ -28,6 +28,7 @@ class Segment
/**
* Throws an exception for an access to an invalid method
* @internal
*
* @param mixed $data Variable on which the access was tried
* @param string $name Name of the method/property that was accessed
@@ -45,7 +46,7 @@ class Segment
$nonExisting = in_array($type, ['array', 'object']) ? 'non-existing ' : '';
$error = 'Access to ' . $nonExisting . $label . ' ' . $name . ' on ' . $type;
$error = 'Access to ' . $nonExisting . $label . ' "' . $name . '" on ' . $type;
throw new BadMethodCallException($error);
}
@@ -110,7 +111,7 @@ class Segment
}
if ($args !== []) {
throw new InvalidArgumentException('Cannot access array element ' . $this->method . ' with arguments');
throw new InvalidArgumentException('Cannot access array element "' . $this->method . '" with arguments');
}
return $value;