Add support for PHPUnit 11 #48
Annotations
12 errors
Run phpstan:
src/Command/I18nExtractCommand.php#L93
Property Cake\Command\I18nExtractCommand::$_exclude (array<int, string>) does not accept array<int|string, string>.
|
Run phpstan
Process completed with exit code 1.
|
Run psalm:
src/Command/I18nExtractCommand.php#L66
src/Command/I18nExtractCommand.php:66:13: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/Command/I18nExtractCommand.php#L69
src/Command/I18nExtractCommand.php:69:13: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/Command/I18nExtractCommand.php#L72
src/Command/I18nExtractCommand.php:72:13: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/Command/I18nExtractCommand.php#L74
src/Command/I18nExtractCommand.php:74:19: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/Command/I18nExtractCommand.php#L93
src/Command/I18nExtractCommand.php:93:31: PropertyTypeCoercion: $this->_exclude expects 'list<string>', parent type 'array<int|string, string>' provided (see https://psalm.dev/198)
|
Run psalm:
src/Command/I18nExtractCommand.php#L209
src/Command/I18nExtractCommand.php:209:13: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/Command/I18nExtractCommand.php#L225
src/Command/I18nExtractCommand.php:225:25: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/Command/I18nInitCommand.php#L48
src/Command/I18nInitCommand.php:48:13: 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)
|
Run psalm:
src/Command/I18nModelTrait.php#L30
src/Command/I18nModelTrait.php:30:18: RiskyTruthyFalsyComparison: Operand of type bool|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)
|
Run psalm:
src/I18n/DbMessagesLoader.php#L66
src/I18n/DbMessagesLoader.php:66:25: RiskyTruthyFalsyComparison: Operand of type Cake\Datasource\RepositoryInterface|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)
|
Loading