X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Futils%2FAvroValidator.php;h=77ea3d9d4cc8e94bfb4d1a30b5cf3f26264803ae;hp=153b3135992a6fe07bbdbfd42015ea30e794c26f;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=9a6b2a4fffb82840d0bf780eb4ecb873ad64fa54 diff --git a/includes/utils/AvroValidator.php b/includes/utils/AvroValidator.php index 153b313599..77ea3d9d4c 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,PhanUndeclaredProperty */ 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";