start typeschema next migration #30
Annotations
8 errors
RedundantCondition:
src/Controller/Example.php#L42
src/Controller/Example.php:42:13: RedundantCondition: Operand of type true is always truthy (see https://psalm.dev/122)
|
ImplicitToStringCast:
src/Controller/Example.php#L85
src/Controller/Example.php:85:90: ImplicitToStringCast: Argument 1 of PSX\Schema\Generator\FileAwareInterface::getFileContent expects string, but PSX\Schema\Generator\Code\Chunks|string provided with a __toString method (see https://psalm.dev/060)
|
RiskyTruthyFalsyComparison:
src/Controller/Generator.php#L79
src/Controller/Generator.php:79:14: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RedundantCondition:
src/Controller/Generator.php#L101
src/Controller/Generator.php:101:25: RedundantCondition: Type string for $schema is never null (see https://psalm.dev/122)
|
TypeDoesNotContainNull:
src/Controller/Generator.php#L101
src/Controller/Generator.php:101:36: TypeDoesNotContainNull: Cannot resolve types for $schema - string does not contain null (see https://psalm.dev/090)
|
RiskyTruthyFalsyComparison:
src/Controller/Generator.php#L119
src/Controller/Generator.php:119:14: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RawObjectIteration:
src/Controller/Generator.php#L137
src/Controller/Generator.php:137:26: RawObjectIteration: Possibly undesired iteration over regular object PSX\Schema\Generator\Code\Chunks (see https://psalm.dev/111)
|
Psalm
Process completed with exit code 2.
|