You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidArgumentException(sprintf('Expected argument of type "%s", "%s" given', $message, 'NULL' === $type ? 'null' : $type), 0, $previous);
270
+
thrownewInvalidArgumentException(sprintf('Expected argument of type "%s", "%s" given.', $message, 'NULL' === $type ? 'null' : $type), 0, $previous);
271
271
}
272
272
}
273
273
@@ -591,7 +591,7 @@ private function getReadAccessInfo($class, $property)
591
591
privatefunctionwriteIndex($zval, $index, $value)
592
592
{
593
593
if (!$zval[self::VALUE] instanceof \ArrayAccess && !\is_array($zval[self::VALUE])) {
594
-
thrownewNoSuchIndexException(sprintf('Cannot modify index "%s" in object of type "%s" because it doesn\'t implement \ArrayAccess', $index, \get_class($zval[self::VALUE])));
594
+
thrownewNoSuchIndexException(sprintf('Cannot modify index "%s" in object of type "%s" because it doesn\'t implement \ArrayAccess.', $index, \get_class($zval[self::VALUE])));
Copy file name to clipboardExpand all lines: PropertyPath.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ public function __construct($propertyPath)
77
77
return;
78
78
}
79
79
if (!\is_string($propertyPath)) {
80
-
thrownewInvalidArgumentException(sprintf('The property path constructor needs a string or an instance of "Symfony\Component\PropertyAccess\PropertyPath". Got: "%s"', \is_object($propertyPath) ? \get_class($propertyPath) : \gettype($propertyPath)));
80
+
thrownewInvalidArgumentException(sprintf('The property path constructor needs a string or an instance of "Symfony\Component\PropertyAccess\PropertyPath". Got: "%s".', \is_object($propertyPath) ? \get_class($propertyPath) : \gettype($propertyPath)));
81
81
}
82
82
83
83
if ('' === $propertyPath) {
@@ -108,7 +108,7 @@ public function __construct($propertyPath)
108
108
}
109
109
110
110
if ('' !== $remaining) {
111
-
thrownewInvalidPropertyPathException(sprintf('Could not parse property path "%s". Unexpected token "%s" at position %d', $propertyPath, $remaining[0], $position));
111
+
thrownewInvalidPropertyPathException(sprintf('Could not parse property path "%s". Unexpected token "%s" at position %d.', $propertyPath, $remaining[0], $position));
112
112
}
113
113
114
114
$this->length = \count($this->elements);
@@ -173,7 +173,7 @@ public function getElements()
173
173
publicfunctiongetElement($index)
174
174
{
175
175
if (!isset($this->elements[$index])) {
176
-
thrownewOutOfBoundsException(sprintf('The index %s is not within the property path', $index));
176
+
thrownewOutOfBoundsException(sprintf('The index %s is not within the property path.', $index));
177
177
}
178
178
179
179
return$this->elements[$index];
@@ -185,7 +185,7 @@ public function getElement($index)
185
185
publicfunctionisProperty($index)
186
186
{
187
187
if (!isset($this->isIndex[$index])) {
188
-
thrownewOutOfBoundsException(sprintf('The index %s is not within the property path', $index));
188
+
thrownewOutOfBoundsException(sprintf('The index %s is not within the property path.', $index));
189
189
}
190
190
191
191
return !$this->isIndex[$index];
@@ -197,7 +197,7 @@ public function isProperty($index)
197
197
publicfunctionisIndex($index)
198
198
{
199
199
if (!isset($this->isIndex[$index])) {
200
-
thrownewOutOfBoundsException(sprintf('The index %s is not within the property path', $index));
200
+
thrownewOutOfBoundsException(sprintf('The index %s is not within the property path.', $index));
0 commit comments