start typeschema next migration #34
Annotations
10 errors
Run Psalm:
src/Controller/Example.php#L35
src/Controller/Example.php:35:13: RedundantCondition: Operand of type true is always truthy (see https://psalm.dev/122)
|
Run Psalm:
src/Controller/Example.php#L78
src/Controller/Example.php:78: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)
|
Run Psalm:
src/Controller/Generator.php#L83
src/Controller/Generator.php:83:40: InvalidArrayOffset: Cannot access value with offset 3 (see https://psalm.dev/115)
|
Run Psalm:
src/Controller/Generator.php#L86
src/Controller/Generator.php:86:72: InvalidArgument: Argument 2 of PSX\Schema\GeneratorFactory::getGenerator expects PSX\Schema\Generator\Config|null, but PSX\Schema\SchemaInterface provided (see https://psalm.dev/004)
|
Run Psalm:
src/Controller/Generator.php#L92
src/Controller/Generator.php:92:94: 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)
|
Run Psalm:
src/Controller/Generator.php#L107
src/Controller/Generator.php:107:25: RedundantConditionGivenDocblockType: Docblock-defined type string for $schema is never null (see https://psalm.dev/156)
|
Run Psalm:
src/Controller/Generator.php#L107
src/Controller/Generator.php:107:36: DocblockTypeContradiction: Cannot resolve types for $schema - docblock-defined type string does not contain null (see https://psalm.dev/155)
|
Run Psalm:
src/Controller/Generator.php#L123
src/Controller/Generator.php:123:40: InvalidArrayOffset: Cannot access value with offset 3 (see https://psalm.dev/115)
|
Run Psalm:
src/Controller/Generator.php#L131
src/Controller/Generator.php:131:72: InvalidArgument: Argument 2 of PSX\Schema\GeneratorFactory::getGenerator expects PSX\Schema\Generator\Config|null, but PSX\Schema\SchemaInterface provided (see https://psalm.dev/004)
|
Run Psalm:
src/Controller/Generator.php#L137
src/Controller/Generator.php:137:102: 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)
|
Loading