"Unresolvable dependency resolving [Parameter #0 [ <required> string $projectId ]] in class Kreait\Firebase\Auth\ApiClient"
akubima opened this issue · comments
Bima commented
Describe the bug
"Unresolvable dependency resolving [Parameter #0 [ string $projectId ]] in class Kreait\Firebase\Auth\ApiClient"
Installed packages
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"kreait/laravel-firebase": "^5.1",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
},
"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,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
PHP version and extensions
composer 2.5.4 Composer package
composer-plugin-api 2.3.0 The Composer Plugin API
composer-runtime-api 2.2.2 The Composer Runtime API
ext-bcmath 8.2.3 The bcmath PHP extension
ext-calendar 8.2.3 The calendar PHP extension
ext-ctype 8.2.3 The ctype PHP extension
ext-curl 8.2.3 The curl PHP extension
ext-date 8.2.3 The date PHP extension
ext-dom 20031129 The dom PHP extension
ext-fileinfo 8.2.3 The fileinfo PHP extension
ext-filter 8.2.3 The filter PHP extension
ext-hash 8.2.3 The hash PHP extension
ext-iconv 8.2.3 The iconv PHP extension
ext-json 8.2.3 The json PHP extension
ext-libxml 8.2.3 The libxml PHP extension
ext-mbstring 8.2.3 The mbstring PHP extension
ext-mysqlnd 0 The mysqlnd PHP extension (actual version: mysqlnd 8.2.3)
ext-openssl 8.2.3 The openssl PHP extension
ext-pcre 8.2.3 The pcre PHP extension
ext-pdo 8.2.3 The PDO PHP extension
ext-phar 8.2.3 The Phar PHP extension
ext-random 8.2.3 The random PHP extension
ext-readline 8.2.3 The readline PHP extension
ext-reflection 8.2.3 The Reflection PHP extension
ext-session 8.2.3 The session PHP extension
ext-simplexml 8.2.3 The SimpleXML PHP extension
ext-sodium 8.2.3 The sodium PHP extension
ext-spl 8.2.3 The SPL PHP extension
ext-tokenizer 8.2.3 The tokenizer PHP extension
ext-xml 8.2.3 The xml PHP extension
ext-xmlreader 8.2.3 The xmlreader PHP extension
ext-xmlwriter 8.2.3 The xmlwriter PHP extension
ext-zlib 8.2.3 The zlib PHP extension
lib-curl 7.85.0 The curl library
lib-curl-libssh2 1.10.0 curl libssh2 version
lib-curl-openssl 3.0.8 curl OpenSSL version (3.0.8)
lib-curl-zlib 1.2.12 curl zlib version
lib-date-timelib 2022.03 date timelib version
lib-date-zoneinfo 2022.7 zoneinfo ("Olson") database for date
lib-fileinfo-libmagic 540 fileinfo libmagic version
lib-iconv 1.16 The iconv library
lib-libsodium 1.0.18 The libsodium library
lib-libxml 2.10.3 libxml library version
lib-mbstring-libmbfl 1.3.2 mbstring libmbfl version
lib-mbstring-oniguruma 6.9.8 mbstring oniguruma version
lib-openssl 3.0.8 OpenSSL 3.0.8 7 Feb 2023
lib-pcre 10.40 The pcre library
lib-pcre-unicode 14.0.0 PCRE Unicode version support
lib-zlib 1.2.12 The zlib library
php 8.2.3 The PHP interpreter
php-64bit 8.2.3 The PHP interpreter, 64bit
php-ipv6 8.2.3 The PHP interpreter, with IPv6 support
php-zts 8.2.3 The PHP interpreter, with Zend Thread Safety
Steps to reproduce the issue.
# Insert the commands issued in the terminal if they are needed
# to reproduce the issue. Otherwise, delete this code block.
// Insert the PHP code to reproduce the issue. Please ensure that it is code that
// can be copy pasted to reproduce it.
Error message/Stack trace
"Unresolvable dependency resolving [Parameter #0 [ <required> string $projectId ]] in class Kreait\Firebase\Auth\ApiClient"
Additional information
"Unresolvable dependency resolving [Parameter #0 [ string $projectId ]] in class Kreait\Firebase\Auth\ApiClient"
Helpp...?
Jérôme Gamez commented
Unfortunately, I cannot provide help without a way to reproduce the issue 🙏🏻
Jérôme Gamez commented
I answered #172 without realizing that it was the same error you reported here. Please follow that issue instead and please provide a way to reproduce the issue. Thanks!