Skip to content

fix(deps): downgrade php-humanizer and structure-discoverer for PHP 8…#256

Closed
lhall-amphibee wants to merge 1 commit intoPollora:developfrom
lhall-amphibee:fix/php82-compat-deps
Closed

fix(deps): downgrade php-humanizer and structure-discoverer for PHP 8…#256
lhall-amphibee wants to merge 1 commit intoPollora:developfrom
lhall-amphibee:fix/php82-compat-deps

Conversation

@lhall-amphibee
Copy link
Copy Markdown

Problem

The develop branch currently pulls in packages that are incompatible with PHP 8.2:

  • coduo/php-humanizer 5.0.3 — requires PHP ~8.3 || ~8.4
  • spatie/php-structure-discoverer dev-main — requires PHP ^8.3

This causes composer install to fail on any environment running PHP 8.2 (e.g. production servers locked to 8.2).

Fix

  • coduo/php-humanizer: 5.0.3^4.0 (PHP 8.1+ compatible, same StringHumanizer::humanize() API)
  • spatie/php-structure-discoverer: dev-main^2.0 (PHP 8.1+ compatible, same Discover/DiscoveredClass/cache driver API)

Notes

The declared PHP constraint in composer.json is ^8.2.0, so these pinned packages were inconsistent with that constraint.

….2 compat

coduo/php-humanizer 5.x requires PHP ~8.3, pinning to ^4.0 restores 8.2 support.
spatie/php-structure-discoverer dev-main requires PHP ^8.3, ^2.0 is 8.1+ compatible.
@ogorzalka ogorzalka closed this Apr 16, 2026
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