Skip to content

Let Castor's bundled classes win over the project's vendor in castor.php - #25

Merged
xavierlacot merged 1 commit into
mainfrom
fix/castor-autoloader
Nov 30, 2026
Merged

xavierlacot merged 1 commit into
mainfrom
fix/castor-autoloader

Conversation

@xavierlacot

Copy link
Copy Markdown
Member

What does this PR do?

Fix the scheduled CI and mutation testing runs, which failed in "castor qa:install" with "Unknown property pausedHandles on CurlClientState". The project's vendor now resolves symfony/http-client 8.2.0, and since Composer prepends its autoloader, its classes got mixed with the older copy bundled in Castor during Castor's startup version check. castor.php now registers the project autoloader after Castor's, so Castor always uses its own bundled packages.

Checklist

  • Tests pass (castor qa:phpunit:run)
  • Coding standards applied (castor qa:cs)
  • Static analysis passes (castor qa:phpstan)
  • Tests added or updated for the change
  • Documentation updated if needed

@xavierlacot
xavierlacot merged commit ad22e55 into main Nov 30, 2026
6 checks passed
@xavierlacot
xavierlacot deleted the fix/castor-autoloader branch November 30, 2026 10:45
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