10000 added previous exception · symfony/symfony@a59be80 · GitHub
[go: up one dir, main page]

Skip to content

Commit a59be80

Browse files
committed
added previous exception
1 parent d0c70d4 commit a59be80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ private function readProperty(array $zval, string $property, bool $ignoreInvalid
443443
}
444444
} catch (\Error $e) {
445445
if (!$ignoreInvalidProperty) {
446-
throw new NoSuchPropertyException(sprintf('Can\'t read protected or private property "%s" in class "%s".', $property, $class));
446+
throw new NoSuchPropertyException(sprintf('Can\'t read protected or private property "%s" in class "%s".', $property, $class), 0, $e);
447447
}
448448
}
449449
} elseif (!$ignoreInvalidProperty) {

0 commit comments

Comments
 (0)
0