kreait / laravel-firebase

A Laravel package for the Firebase PHP Admin SDK
https://github.com/kreait/firebase-php
MIT License
994 stars 163 forks source link

Support for laravel 10 and php 8.1 #185

Closed stojankukrika closed 1 year ago

stojankukrika commented 1 year ago

Describe the bug

Hi, I use this package for a while and now tried to update the project to Laravel 10 and PHP 8.1(AWS does not support 8.2 on its servers). But get this as an error, can you take a look(on Gitlab where I have GitLab runners before publishing the app on AWS):

Screenshot 2023-06-19 at 05 27 36

Installed packages

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "php": "^8.1",
        "aws/aws-sdk-php": "^3.273",
        "barryvdh/laravel-dompdf": "^2.0",
        "bugsnag/bugsnag-laravel": "^2.26.0",
        "kreait/laravel-firebase": "^5.2",
        "laravel/framework": "^10.13",
        "league/flysystem-aws-s3-v3": "^3.15",
        "pusher/pusher-php-server": "~7.2.3",
        "ramsey/uuid": "^4.0",
        "symfony/amazon-mailer": "^6.3",
        "twilio/sdk": "^7.4",
        "vlucas/phpdotenv": "^5.5",
        "vonage/client": "^4.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.23",
        "mockery/mockery": "^1.6",
        "nunomaduro/collision": "^7.6",
        "phpunit/phpunit": "^10.2",
        "spatie/laravel-ignition": "^2.1"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

PHP version and extensions

php 8.1

Steps to reproduce the issue.

composer install --prefer-dist --no-ansi --no-interaction --no-progress

Error message/Stack trace

Your lock file does not contain a compatible set of packages. Please run composer update.
  Problem 1
    - lcobucci/clock is locked to version 3.1.0 and an update of this package was not requested.
    - lcobucci/clock 3.1.0 requires php ~8.2.0 -> your php version (8.1.13) does not satisfy that requirement.
  Problem 2
    - lcobucci/clock 3.1.0 requires php ~8.2.0 -> your php version (8.1.13) does not satisfy that requirement.
    - lcobucci/jwt 4.3.0 requires lcobucci/clock ^2.0 || ^3.0 -> satisfiable by lcobucci/clock[3.1.0].
    - lcobucci/jwt is locked to version 4.3.0 and an update of this package was not requested.

Additional information

No response

jeromegamez commented 1 year ago

The first line of the error message already tells you what is needed 😅

Your lock file does not contain a compatible set of packages. Please run composer update.

I recommend a composer update --with-all-dependencies so that transitive dependencies are updated as well.

stojankukrika commented 1 year ago

Ooo, thank you @jeromegamez !! Works great! Thank you.