Skip to content

Fix method signature parameter names to match source code#8181

Merged
dereuromark merged 2 commits into5.xfrom
fix-param-names
Jan 28, 2026
Merged

Fix method signature parameter names to match source code#8181
dereuromark merged 2 commits into5.xfrom
fix-param-names

Conversation

@dereuromark
Copy link
Member

Summary

  • Log methods: $scope$context (write, emergency, alert, critical, error, warning, notice, info, debug)
  • Security::hash(): $type$algorithm
  • Configure methods: $key$var/$config (write, read, readOrFail, check, delete, consume, consumeOrFail)
  • Hash::check(): remove incorrect = null default from required $path parameter
  • Hash::filter(): change callback default from ['Hash', 'filter'] to null

These changes align the documented parameter names with the actual CakePHP 5.x source code.

Relates to #7744

- Log methods: $scope → $context (write, emergency, alert, critical, error, warning, notice, info, debug)
- Security::hash(): $type → $algorithm
- Configure methods: $key → $var/$config (write, read, readOrFail, check, delete, consume, consumeOrFail)
- Hash::check(): remove incorrect = null default from required $path parameter
- Hash::filter(): change callback default from ['Hash', 'filter'] to null
@dereuromark dereuromark requested a review from josbeir January 28, 2026 14:49
Updates signatures to include full type annotations matching CakePHP 5.x source:
- Log: setConfig, drop, write, emergency, alert, critical, error, warning, notice, info, debug
- Security: encrypt, decrypt, hash, randomBytes, randomString
- Configure: write, read, readOrFail, check, delete, consume, consumeOrFail, config, drop, load, dump, store, restore
- Hash: get, extract, insert, remove, combine, format, filter, map, reduce, apply, sort, normalize
@dereuromark dereuromark merged commit acef6f9 into 5.x Jan 28, 2026
5 checks passed
@dereuromark dereuromark deleted the fix-param-names branch January 28, 2026 15:09
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.

2 participants