Allow wikidata IDs exceeding the size of INT32

This commit is contained in:
jrenslin committed 2024-08-10 17:05:44 +02:00
1 parent 7826b7d891
commit bdb9bb16f5
1 file changed
+1 -1
+1 -1
View File
@@ -574,7 +574,7 @@ private static function validateWikidataId(string $id):string|false {
throw new MDInvalidNodaLinkException("Wikidata IDs must be Q IDs - and start with that letter (provided: $id)"); throw new MDInvalidNodaLinkException("Wikidata IDs must be Q IDs - and start with that letter (provided: $id)");
} }
if (filter_var(substr($id, 1), FILTER_VALIDATE_INT) === false) { if (self::_is_numeric(substr($id, 1)) === false) {
return false; return false;
} }