Skip to content

Drop the redundant public from the plugin's set-only properties - #19

Merged
ahegyes merged 1 commit into
trunkfrom
style/protected-set-visibility
Oct 29, 2026
Merged

ahegyes merged 1 commit into
trunkfrom
style/protected-set-visibility

Conversation

@ahegyes

@ahegyes ahegyes commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Plugin declares $migrations and $kernel as public protected(set), while a set-only visibility already reads as public. The framework packages write protected(set) alone, and the style rule covers plugin code too, so the template matches what every plugin copies from it. ahegyes/wordpress-framework#64 makes the same change in the framework's fixtures.

  • Plugin: src/Plugin.php's $migrations and $kernel drop the public; no behavior change.

Code +2 −2.

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Build / CI / tooling
  • Documentation
  • Dependency update

Checklist

  • Changelog fragment added (composer changelog:add): none; the v2 rebuild ships as "Initial release."
  • Tests added/updated: no behavior changes
  • composer quality-check passes locally
  • Plugin header updated if runtime requirements changed: no runtime requirement changed

Testing.

  • composer quality-check passes: validate, changelog validation, PHPCS on both profiles, PHPStan level 10, Unit 6 and Integration 70.
  • npm run test:e2e passes (3 of 3); lint:scripts, lint:styles and lint:types are clean.

Plugin declared $migrations and $kernel as public protected(set), while
a set-only visibility already reads as public. The framework packages
write protected(set) alone, and the style guide's rule covers plugin
code too, so the template now matches what every plugin copies from it.

Assisted-by: Claude Code:claude-opus-5-5
@ahegyes
ahegyes merged commit 3caf0c3 into trunk Oct 29, 2026
28 checks passed
@ahegyes
ahegyes deleted the style/protected-set-visibility branch October 29, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant