chore(psalm): updates Psalm config #1802
Annotations
10 errors
|
PossiblyFalseOperand:
inc/Services/Svg.php#L54
inc/Services/Svg.php:54:40: PossiblyFalseOperand: Left operand cannot be falsable, got false|int<0, max> (see https://psalm.dev/162)
|
|
RiskyTruthyFalsyComparison:
inc/Services/Editor_Patterns.php#L212
inc/Services/Editor_Patterns.php:212:11: 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)
|
|
RiskyTruthyFalsyComparison:
inc/Services/Editor_Patterns.php#L117
inc/Services/Editor_Patterns.php:117:9: RiskyTruthyFalsyComparison: Operand of type false|list<non-empty-string> contains type list<non-empty-string>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
|
MismatchingDocblockParamType:
inc/Services/Editor.php#L166
inc/Services/Editor.php:166:12: MismatchingDocblockParamType: Parameter $theme_json has wrong type 'BEA\Theme\Framework\Services\WP_Theme_JSON_Data', should be 'WP_Theme_JSON_Data' (see https://psalm.dev/141)
|
|
RiskyTruthyFalsyComparison:
inc/Services/Assets.php#L175
inc/Services/Assets.php:175:8: RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
|
RedundantCast:
inc/Services/Acf.php#L81
inc/Services/Acf.php:81:17: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
|
|
PossiblyNullArgument:
inc/Helpers/Formatting/Share.php#L146
inc/Helpers/Formatting/Share.php:146:19: PossiblyNullArgument: Argument 1 of BEA\Theme\Framework\Helpers\Svg\get_the_icon cannot be null, possibly null value provided (see https://psalm.dev/078)
|
|
PossiblyUndefinedArrayOffset:
inc/Helpers/Formatting/Share.php#L146
inc/Helpers/Formatting/Share.php:146:19: PossiblyUndefinedArrayOffset: Possibly undefined array key $network['icon'] on array{attributes: array{class: 'share__link', href: mixed, target: '_blank', title: mixed}, icon?: 'social/bluesky'|'social/email'|'social/facebook'|'social/instagram'|'social/linkedin'|'social/x', params: mixed} (see https://psalm.dev/167)
|
|
RiskyTruthyFalsyComparison:
inc/Helpers/Formatting/Link.php#L270
inc/Helpers/Formatting/Link.php:270:7: RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
|
MissingDependency:
header.php#L64
header.php:64:34: MissingDependency: BEA\Theme\Framework\Helpers\Custom_Menu_Walker depends on class or interface walker_nav_menu that does not exist (see https://psalm.dev/157)
|