[PropertyAccessor] Added missing property path on php 8.

This commit is contained in:
Alexander M. Turek 2020-05-23 17:44:24 +02:00
parent a14d8f9da4
commit 6a73bcdb8e
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class PropertyAccessor implements PropertyAccessorInterface
if (preg_match('/^\S+::\S+\(\): Argument #\d+ \(\$\S+\) must be of type (\S+), (\S+) given/', $message, $matches)) {
list(, $expectedType, $actualType) = $matches;
throw new InvalidArgumentException(sprintf('Expected argument of type "%s", "%s" given.', $expectedType, 'NULL' === $actualType ? 'null' : $actualType), 0, $previous);
throw new InvalidArgumentException(sprintf('Expected argument of type "%s", "%s" given at property path "%s".', $expectedType, 'NULL' === $actualType ? 'null' : $actualType, $propertyPath), 0, $previous);
}
}