Skip to content

Commit a43499f

Browse files
committed
Merge branch '5.1' into 5.x
2 parents 6d92d94 + ee27231 commit a43499f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function setValue(&$objectOrArray, $propertyPath, $value)
137137

138138
return;
139139
} catch (\TypeError $e) {
140-
self::throwInvalidArgumentException($e->getMessage(), $e->getTrace(), 0, $propertyPath);
140+
self::throwInvalidArgumentException($e->getMessage(), $e->getTrace(), 0, $propertyPath, $e);
141141
// It wasn't thrown in this class so rethrow it
142142
throw $e;
143143
}

0 commit comments

Comments
 (0)