Skip to content

fix: drop redundant isset() on non-nullable WP_Post::$post_title - #1304

Merged
selul merged 1 commit into
developmentfrom
fix/phpstan-import-title-isset
Aug 4, 2026
Merged

selul merged 1 commit into
developmentfrom
fix/phpstan-import-title-isset

Conversation

@selul

@selul selul commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

PHPStan started failing on development after #1284 merged:

includes/admin/feedzy-rss-feeds-import.php:1449
Property WP_Post::$post_title (string) in isset() is not nullable.

$job is already guarded by the if ( ! $job ) bail directly above, and WP_Post::$post_title is declared non-nullable, so the isset() ternary is dead weight. The other call sites in this file (lines 1650, 1663, 1680, 1709) already read $job->post_title directly — this matches them.

Blocks release PR #1297.

PHPStan flagged includes/admin/feedzy-rss-feeds-import.php:1449 after #1284
merged into development. $job is already guarded by the ! $job bail above,
and the other call sites in this file read $job->post_title directly.
@pirate-bot

Copy link
Copy Markdown
Contributor

Plugin build for 45ccb70 is ready 🛎️!

Note

You can preview the changes in the Playground

@selul
selul merged commit e00ca25 into development Aug 4, 2026
9 of 10 checks passed
@selul
selul deleted the fix/phpstan-import-title-isset branch August 4, 2026 09:58
@pirate-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.2.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants