Allow wikidata IDs exceeding the size of INT32

This commit is contained in:
Joshua Ramon Enslin 2024-08-10 17:05:44 +02:00
parent 7826b7d891
commit bdb9bb16f5
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -574,7 +574,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
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;
}