8000 bug #38645 [PropertyAccess] forward the caught exception (xabbuh) · symfony/symfony@aafad69 · GitHub
[go: up one dir, main page]

Skip to content

Commit aafad69

Browse files
committed
bug #38645 [PropertyAccess] forward the caught exception (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [PropertyAccess] forward the caught exception | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #38621 | License | MIT | Doc PR | Commits ------- 143f82e forward the caught exception
2 parents b2821ec + 143f82e commit aafad69

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

< 60FB /td>
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