Fix a couple psalm errors #128
Annotations
10 errors
Run static analysis:
src/StructuredFields/Rfc8941.php#L16
src/StructuredFields/Rfc8941.php:16:22: UndefinedDocblockClass: Docblock-defined class, interface or enum named Amp\Http\StructuredFields\Rfc8941BareItem does not exist (see https://psalm.dev/200)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L16
src/StructuredFields/Rfc8941.php:16:22: InvalidReturnType: Not all code paths of Amp\Http\StructuredFields\Rfc8941::parseList end in a return statement, return type list<Amp\Http\StructuredFields\InnerList|Amp\Http\StructuredFields\Item<Amp\Http\StructuredFields\Rfc8941BareItem>>|null expected (see https://psalm.dev/011)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L51
src/StructuredFields/Rfc8941.php:51:22: UndefinedDocblockClass: Docblock-defined class, interface or enum named Amp\Http\StructuredFields\Rfc8941BareItem does not exist (see https://psalm.dev/200)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L51
src/StructuredFields/Rfc8941.php:51:22: InvalidReturnType: Not all code paths of Amp\Http\StructuredFields\Rfc8941::parseDictionary end in a return statement, return type array<string, Amp\Http\StructuredFields\InnerList|Amp\Http\StructuredFields\Item<Amp\Http\StructuredFields\Rfc8941BareItem>>|null expected (see https://psalm.dev/011)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L94
src/StructuredFields/Rfc8941.php:94:23: UndefinedDocblockClass: Docblock-defined class, interface or enum named Amp\Http\StructuredFields\Rfc8941BareItem does not exist (see https://psalm.dev/200)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L105
src/StructuredFields/Rfc8941.php:105:23: UndefinedDocblockClass: Docblock-defined class, interface or enum named Amp\Http\StructuredFields\Rfc8941BareItem does not exist (see https://psalm.dev/200)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L136
src/StructuredFields/Rfc8941.php:136:23: UndefinedDocblockClass: Docblock-defined class, interface or enum named Amp\Http\StructuredFields\Rfc8941BareItem does not exist (see https://psalm.dev/200)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L402
src/StructuredFields/Rfc8941.php:402:22: InvalidReturnType: The declared return type 'TOutput:fn-amp\http\structuredfields\rfc8941::parsebareitem as null|scalar' for Amp\Http\StructuredFields\Rfc8941::parseBareItem is incorrect, got 'null|scalar' (see https://psalm.dev/011)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L409
src/StructuredFields/Rfc8941.php:409:13: ReferenceConstraintViolation: Variable $class is limited to values of type (TOutput is null ? null : class-string<Amp\Http\StructuredFields\Item<Amp\Http\StructuredFields\Rfc8941BareItem>>) because it is passed by reference, Amp\Http\StructuredFields\Number::class type found. Use @param-out to specify a different output type (see https://psalm.dev/086)
|
Run static analysis:
src/StructuredFields/Rfc8941.php#L409
src/StructuredFields/Rfc8941.php:409:20: InvalidReturnStatement: The inferred type 'float|int|null' does not match the declared return type 'TOutput:fn-amp\http\structuredfields\rfc8941::parsebareitem as null|scalar' for Amp\Http\StructuredFields\Rfc8941::parseBareItem (see https://psalm.dev/128)
|
The logs for this run have expired and are no longer available.
Loading