Skip to content

[5.x] Remove the deprecated Inflector class - #85

Open
Hackwar wants to merge 2 commits into
joomla-framework:5.x-devfrom
Hackwar:5.x-remove-inflector
Open

Hackwar wants to merge 2 commits into
joomla-framework:5.x-devfrom
Hackwar:5.x-remove-inflector

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Joomla\String\Inflector is a thin wrapper around doctrine/inflector and has been marked @deprecated 5.0. This PR removes the class and its tests, and drops doctrine/inflector from suggest and require-dev.

Testing Instructions

vendor/bin/phpunit passes without the Inflector suite. phpcs is clean, and PHPStan reports no errors locally. The PHPStan job in CI fails on 4.x-dev/5.x-dev as well (mb_trim and the other PHP 8.4 polyfill functions are not found), and #66 fixes that on 4.x. composer update --dry-run removes doctrine/inflector.

Documentation Changes Required

docs/v4-to-v5-update.md: a section on the removed Inflector, with a table that maps each method to its doctrine/inflector equivalent, and a dependency note.

The owner's docs PR #72 documents Inflector on 4.x ("Inflector — deprecated" in docs/overview.md). That section has to be dropped when 4.x-dev is merged into 5.x-dev.

Depends on #84 (this branch is built on it, so its commit shows up here until #84 is merged) and on #83, which adds the 4.x deprecation notices. When 4.x-dev is merged up, the changes from #83 to src/Inflector.php and Tests/InflectorTest.php have to be resolved as deletions. #77 and #78 add entries to suggest in composer.json next to the line this PR changes, so expect a small conflict there as well.

🤖 Generated with Claude Code

Hackwar and others added 2 commits November 13, 2026 01:25
Several 5.x changes need an entry in the update guide. Creating the
file once keeps them from conflicting over its creation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inflector is a thin wrapper around doctrine/inflector and was
deprecated in 4.x. Remove it together with the doctrine/inflector
suggestion and development dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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