tests: improve AttributesOutputFilter unit test #14
Annotations
10 errors
Run Psalm:
src/AssetFactory.php#L93
src/AssetFactory.php:93:13: RiskyTruthyFalsyComparison: Operand of type mixed|true contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run Psalm:
src/AssetManager.php#L69
src/AssetManager.php:69:9: DocblockTypeContradiction: Operand of type false is always falsy (see https://psalm.dev/155)
|
Run Psalm:
src/AssetManager.php#L72
src/AssetManager.php:72:9: DocblockTypeContradiction: Operand of type false is always falsy (see https://psalm.dev/155)
|
Run Psalm:
src/AssetManager.php#L255
src/AssetManager.php:255:13: RiskyTruthyFalsyComparison: Operand of type int|null contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run Psalm:
src/AssetManager.php#L311
src/AssetManager.php:311: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/Loader/AbstractWebpackLoader.php#L72
src/Loader/AbstractWebpackLoader.php:72:17: RiskyTruthyFalsyComparison: Operand of type false|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/Loader/AbstractWebpackLoader.php#L186
src/Loader/AbstractWebpackLoader.php:186:13: RiskyTruthyFalsyComparison: Operand of type false|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/Loader/AbstractWebpackLoader.php#L190
src/Loader/AbstractWebpackLoader.php:190:13: RiskyTruthyFalsyComparison: Operand of type false|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/Loader/AbstractWebpackLoader.php#L194
src/Loader/AbstractWebpackLoader.php:194:13: RiskyTruthyFalsyComparison: Operand of type false|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/Loader/AbstractWebpackLoader.php#L198
src/Loader/AbstractWebpackLoader.php:198:13: RiskyTruthyFalsyComparison: Operand of type false|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