8000 forward the caught exception · Nyholm/symfony@143f82e · GitHub
[go: up one dir, main page]

Skip to content

Commit 143f82e

Browse files
committed
forward the caught exception
1 parent 65b41de commit 143f82e

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
@@ -115,7 +115,7 @@ public function setValue(&$objectOrArray, $propertyPath, $value)
115115

116116
return;
117117
} catch (\TypeError $e) {
118-
self::throwInvalidArgumentException($e->getMessage(), $e->getTrace(), 0, $propertyPath);
118+
self::throwInvalidArgumentException($e->getMessage(), $e->getTrace(), 0, $propertyPath, $e);
119119
// It wasn't thrown in this class so rethrow it
120120
throw $e;
121121
}

0 commit comments

Comments
 (0)
0