Skip to content

[4.x] Require joomla/input and joomla/uri, analyse for PHP 8.3 - #167

Open
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-require-input-uri
Open

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-require-input-uri

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

AbstractWebApplication imports and instantiates Joomla\Input\Input and Joomla\Uri\Uri, and getInput() is declared to return an Input, yet joomla/input and joomla/uri are only listed in suggest. A project that installs joomla/application without them gets a fatal error as soon as a web application is constructed. Both are moved from require-dev/suggest to require. (joomla/router, needed by WebApplication only, stays a suggestion.)

phpstan.neon still set phpVersion: 80100 although the package requires PHP 8.3; it now analyses for 8.3. PHPStan reports no new errors.

Testing Instructions

composer validate, composer update, vendor/bin/phpunit, vendor/bin/phpstan analyse.

Documentation Changes Required

None. docs/overview.md already lists joomla/input and joomla/uri as required dependencies; the dependency tables in the update guides describe released versions and stay as they are.

Related to #168 (both edit composer.json; they merge cleanly).

🤖 Generated with Claude Code

AbstractWebApplication imports and instantiates Joomla\Input\Input and
Joomla\Uri\Uri, and getInput() is declared to return an Input, yet both
packages were only suggested. Installing joomla/application without them
gave a fatal error as soon as a web application was constructed.

PHPStan still analysed for PHP 8.1 although the package requires 8.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@heelc29 heelc29 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AbstractWebApplication imports and instantiates Joomla\Input\Input and Joomla\Uri\Uri, and getInput() is declared to return an Input, yet joomla/input and joomla/uri are only listed in suggest. A project that installs joomla/application without them gets a fatal error as soon as a web application is constructed. Both are moved from require-dev/suggest to require. (joomla/router, needed by WebApplication only, stays a suggestion.)

but it is possible to use AbstractApplication

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