Skip to content

Support for PHP 8.4 and Laravel 12 (Symfony 8) #291

@algonorth

Description

@algonorth

Describe the bug When attempting to install roach-php/laravel on a new Laravel 12 application running PHP 8.4, the installation fails due to dependency conflicts. The core package (roach-php/core) has strict upper bounds on the PHP version (currently allowing only ~8.2.0 || ~8.3.0) and requires Symfony 7 components (e.g., symfony/event-dispatcher ^7.0), whereas Laravel 12 utilizes Symfony 8 components.

Reproduction Please include a link to a minimal repository that reproduces the issue.

Create a new Laravel application using the latest version (Laravel 12).

Ensure the environment is running PHP 8.4.

Run composer require roach-php/laravel.

Expected behavior The package should install successfully, or support for PHP 8.4 and Symfony 8 contracts should be added to allow compatibility with the latest Laravel release.

Package versions (please complete the following information):

roach-php/laravel: (Attempting to install latest, e.g. ^3.2)

roach-php/core: (Attempting to install latest)

PHP: 8.4.14

Laravel: 12.x

Additional context Here is the specific Composer output highlighting the conflicts with symfony/event-dispatcher v8 and the PHP version requirement:

Problem 1
- roach-php/core[v3.0.0, ..., v3.0.1] require php ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.4.14) does not satisfy that requirement.
- roach-php/core v3.2.1 requires symfony/event-dispatcher ^7.0 -> found symfony/event-dispatcher[v7.0.0, ..., v7.4.0] but the package is fixed to v8.0.0 (lock file version) by a partial update and that version does not match.
- roach-php/laravel 3.2.0 requires roach-php/core ^2.0 || ^3.0 || dev-main -> satisfiable by roach-php/core[2.0.0, 2.0.1, v3.0.0, ..., v3.2.1].

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions