Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add to fresh Laravel 11 install using PHP 8.3 #169

Open
rgasch opened this issue Sep 25, 2024 · 2 comments
Open

Unable to add to fresh Laravel 11 install using PHP 8.3 #169

rgasch opened this issue Sep 25, 2024 · 2 comments

Comments

@rgasch
Copy link

rgasch commented Sep 25, 2024

First of all, I had to use

composer require ekmungai/eloquent-ifrs:5.0.3

to get the latest version. But even this version fails to install (my guess is, due to outdated doctrine//dbal dependencies).

composer require ekmungai/eloquent-ifrs:5.0.3
./composer.json has been updated
Running composer update ekmungai/eloquent-ifrs
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - doctrine/dbal[v2.10.0, ..., 2.10.4] require php ^7.2 -> your php version (8.3.11) does not satisfy that requirement.
    - doctrine/dbal[2.11.0, ..., 2.11.3] require php ^7.3 -> your php version (8.3.11) does not satisfy that requirement.
    - Root composer.json requires ekmungai/eloquent-ifrs 5.0.3 -> satisfiable by ekmungai/eloquent-ifrs[v5.0.3].
    - carbonphp/carbon-doctrine-types 3.2.0 conflicts with doctrine/dbal 3.9.1.
    - ekmungai/eloquent-ifrs v5.0.3 requires doctrine/dbal ^2.10|^3.1 -> satisfiable by doctrine/dbal[v2.10.0, ..., 2.13.9, 3.1.0, ..., 3.9.1].
    - nesbot/carbon 3.8.0 requires carbonphp/carbon-doctrine-types * -> satisfiable by carbonphp/carbon-doctrine-types[3.2.0].
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.5.4.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.4.6.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.3.8.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.3.5.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.2.2.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.1.5.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 3.1.0.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 2.13.9.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 2.13.8.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 2.13.1.
    - symfony/http-foundation v7.1.5 conflicts with doctrine/dbal 2.12.1.
    - laravel/framework v11.24.1 requires nesbot/carbon ^2.72.2|^3.0 -> satisfiable by nesbot/carbon[3.8.0].
    - laravel/framework v11.24.1 requires symfony/http-foundation ^7.0 -> satisfiable by symfony/http-foundation[v7.1.5].
    - laravel/framework is locked to version v11.24.1 and an update of this package was not requested
@ekmungai
Copy link
Owner

Hey @rgasch,

Thanks for pointing this out. I'll try and reproduce it and work on a fix.

Cheers,
Ed

@ekmungai
Copy link
Owner

Hey @rgasch,

I was unfortunately unable to reproduce this:

Installing laravel/laravel (v11.3.1)
  - Downloading laravel/laravel (v11.3.1)
  - Installing laravel/laravel (v11.3.1): Extracting archive
Created project in ...
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
...
composer require "ekmungai/eloquent-ifrs"
Using version ^5.0 for ekmungai/eloquent-ifrs
./composer.json has been created
Running composer update ekmungai/eloquent-ifrs
Loading composer repositories with package information
Updating dependencies
Lock file operations: 70 installs, 0 updates, 0 removals
...
  - Installing ekmungai/eloquent-ifrs (v5.0.3): Extracting archive
24 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
40 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
php -v
PHP 8.3.12 (cli) (built: Sep 24 2024 20:22:14) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.3.12, Copyright (c) Zend Technologies

Maybe you could let the package manager determine the best version to install?

Regards,
Ed

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

No branches or pull requests

2 participants