@@ -44,8 +44,8 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * Splits an ID serialization into the relative part, and the base ID. |
| 46 | 46 | * |
| 47 | - * @param $serialization |
|
| 48 | - * @return array A two element array of strings, [ $basePart, $relativePart ] |
|
| 47 | + * @param string $serialization |
|
| 48 | + * @return string[] A two element array of strings, [ $basePart, $relativePart ] |
|
| 49 | 49 | */ |
| 50 | 50 | public static function splitHierarchicalSerialization( $serialization ) { |
| 51 | 51 | if ( !preg_match( '/^(.+)[-#]([^-#]+)/', $serialization, $m ) ) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Wikibase\DataModel\Entity; |
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | -use Serializable; |
|
| 7 | 6 | |
| 8 | 7 | /** |
| 9 | 8 | * Base class for hierarchical entity IDs. Hierarchical entity IDs are addresses that can be |