Skip to content

Commit e63932b

Browse files
committed
Forward previous exception in EntityIdValue
1 parent 3ce0e84 commit e63932b

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)