X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Futils%2FAvroValidator.php;h=f3a8810a9867a14a57eb48fe7ca8eac45579ee63;hb=7862475b0de83124d1d1ff1bf3fc67457d006b0e;hp=153b3135992a6fe07bbdbfd42015ea30e794c26f;hpb=16ef3e79c4c52aa6b74563b7eadcfc9792e7a4c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/AvroValidator.php b/includes/utils/AvroValidator.php index 153b313599..f3a8810a98 100644 --- a/includes/utils/AvroValidator.php +++ b/includes/utils/AvroValidator.php @@ -34,6 +34,7 @@ class AvroValidator { * @return string|string[] An error or list of errors in the * provided $datum. When no errors exist the empty array is * returned. + * @suppress PhanUndeclaredMethod */ public static function getErrors( AvroSchema $schema, $datum ) { switch ( $schema->type ) { @@ -124,6 +125,7 @@ class AvroValidator { $errors[] = $result; } if ( $errors ) { + // @phan-suppress-next-line PhanTypeMismatchReturn return [ "Expected any one of these to be true", $errors ]; } return "No schemas provided to union";