Skip to content

Upgrade TinyAuth for CakePHP 6 - #172

Merged
dereuromark merged 8 commits into
dereuromark:cake6from
web-dev-passion:add-native-types
Oct 11, 2026
Merged

dereuromark merged 8 commits into
dereuromark:cake6from
web-dev-passion:add-native-types

Conversation

@web-dev-passion

@web-dev-passion web-dev-passion commented Jun 19, 2026 •

Copy link
Copy Markdown

Integrate the existing native typing changes into the CakePHP 6 branch and retain the latest ACL, cache isolation and command fixes from CakePHP 5.

Update configuration, component registry, helper view and DebugKit panel properties to the CakePHP 6 APIs. Commands receive arguments and console IO through framework properties, and shared ACL utilities accept ConsoleIoInterface.

Require PHP 8.5, CakePHP 6, Authentication 5, Authorization 4, DebugKit 6 and PHPUnit 13. The CakePHP 5 branch remains unchanged.

Validation: 167 tests with 511 assertions, coding standards, PHPStan level 8 and the documentation build pass.

Pull @param/@return/@var down to native PHP 8.2 types across src/.
Signatures and properties only, no behaviour change. Kept the docblocks
where they hold generics native types can't (array<string, int|string>).
Left a few loose on purpose where a strict type would break callers:
persistIdentity, hasRoles, link/_default. phpstan 8 + cs green, tests unchanged.
@dereuromark

Copy link
Copy Markdown
Owner

I like it, but some of the public API changes here need to wait until the next major.
For BC reasons.
I will keep it open for now, if that's OK.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53ea59eb-5898-40b4-93d3-fda7742cf981

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR













  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dereuromark dereuromark changed the title Strict typing: Add native PHP 8.2 type declarations from the existing PHPDoc blocks Upgrade TinyAuth for CakePHP 6 Oct 11, 2026
@dereuromark
dereuromark changed the base branch from master to cake6 October 11, 2026 22:18
@dereuromark dereuromark added documentation Documentation improvements enhancement labels Oct 11, 2026
@dereuromark
dereuromark merged commit 7e5933e into dereuromark:cake6 Oct 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation improvements enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants