fix: psalm errors #23
Annotations
5 errors and 1 warning
RiskyTruthyFalsyComparison:
../../src/CodeStyle.php#L57
../../src/CodeStyle.php:57: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)
|
RiskyTruthyFalsyComparison:
../../src/CodeStyle.php#L61
../../src/CodeStyle.php:61: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)
|
RiskyTruthyFalsyComparison:
../../src/CodeStyle.php#L73
../../src/CodeStyle.php:73: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)
|
PossiblyNullReference:
../../src/CodeStyleConfiguration.php#L37
../../src/CodeStyleConfiguration.php:37:19: PossiblyNullReference: Cannot call method scalarNode on possibly null value (see https://psalm.dev/083)
|
UndefinedInterfaceMethod:
../../src/CodeStyleConfiguration.php#L37
../../src/CodeStyleConfiguration.php:37:19: UndefinedInterfaceMethod: Method Symfony\Component\Config\Definition\Builder\NodeParentInterface::scalarNode does not exist (see https://psalm.dev/181)
|
Lint Code Base
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|