Skip to content

Commit 9938cc0

Browse files
authored
Merge pull request #729 from wmde/forwardEx
Forward previous exception in EntityIdValue
2 parents 3ce0e84 + e63932b commit 9938cc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Entity/EntityIdValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function unserialize( $serialized ) {
6767
try {
6868
$entityId = LegacyIdInterpreter::newIdFromTypeAndNumber( $entityType, $numericId );
6969
} catch ( InvalidArgumentException $ex ) {
70-
throw new IllegalValueException( 'Invalid EntityIdValue serialization.' );
70+
throw new IllegalValueException( 'Invalid EntityIdValue serialization.', 0, $ex );
7171
}
7272

7373
$this->__construct( $entityId );

0 commit comments

Comments
 (0)