Skip to content

Conversation

@dereuromark
Copy link
Member

Summary

  • Adds rector rule for TypeFactory::getMap($type)getMapped($type) transformation
  • Only applies when getMap() is called with an argument (calling without argument returns full map and is still valid)
  • Includes unit tests and updates integration test fixtures

Fixes #354

In CakePHP 5.3, calling TypeFactory::getMap() with a type argument
is deprecated. Use getMapped() instead for single-type lookups.

Fixes #354
@markstory markstory merged commit ea8b464 into 5.x Jan 22, 2026
3 checks passed
@markstory markstory deleted the feature/type-factory-get-mapped-rector branch January 22, 2026 15:26
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.

5.next: getMap() => getMapped()

3 participants