Skip to content

Commit a7bdb4e

Browse files
jakobwWMDE bot
authored andcommitted
Use mediawiki-phan-config 0.16.0
The majority of issues were related to exception handling (unused exception variable, missing @throws annotation etc), and straightforward to fix. Bug: T398459 Change-Id: I5a459fd4c45eb73439ade6cca29109370468a495
1 parent 3a3e052 commit a7bdb4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Snak/SnakObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function serialize() {
120120
public function unserialize( $serialized ) {
121121
try {
122122
$this->propertyId = new NumericPropertyId( $serialized );
123-
} catch ( InvalidArgumentException $ex ) {
123+
} catch ( InvalidArgumentException ) {
124124
// Backwards compatibility with the previous serialization format
125125
$this->propertyId = NumericPropertyId::newFromNumber( unserialize( $serialized ) );
126126
}

0 commit comments

Comments
 (0)