Ao rodar o comando "composer install" retornou erro de versão do PHP. É possível realizar o curso utilizando a versão 8 do PHP?
Ao rodar o comando "composer install" retornou erro de versão do PHP. É possível realizar o curso utilizando a versão 8 do PHP?
Olá Rafael, tudo bem?
Sim, é totalmente possível. Inclusive eu fiz na versão 8.0 do PHP.
Consegue nos dar mais detalhes sobre qual exatamente foi o erro retornado ao executar o comando "composer install"?
Fico no aguardo.
Olá! Eu adicionei o parâmetro "--ignore-platform-reqs" ao "composer install" e passou. $ composer install --ignore-platform-reqs
Obrigado!
mesmo dando um ignore platform-reqs da erro pra mim.
Deprecation Notice: Return type of Illuminate\Container\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Container\Container.php:1256
> @php artisan package:discover --ansi
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Support\Collection.php:1971
Stack trace:
#0 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Support\Collection.php(42): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Return type of ...', 'C:\\Users\\ferna\\...', 1971)
#1 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\composer\ClassLoader.php(571): include('C:\\Users\\ferna\\...')
#2 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile('C:\\Users\\ferna\\...')
#3 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Support\helpers.php(471): Composer\Autoload\ClassLoader->loadClass('Illuminate\\Supp...')
#4 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php(121): collect(Array)
#5 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php(97): Illuminate\Foundation\PackageManifest->build()
#6 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php(80): Illuminate\Foundation\PackageManifest->getManifest()
#7 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#8 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(210): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))
#9 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(311): Illuminate\Foundation\Application->bootstrapWith(Array)
#10 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(120): Illuminate\Foundation\Console\Kernel->bootstrap()
#11 C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 {main} in C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Support\Collection.php on line 42
PHP Fatal error: Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Container\Container.php:855
Stack trace:
ControleSeries\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(757): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
#13 {main}
thrown in C:\Users\ferna\OneDrive\Documentos\11 - Sites\00 - Alura\00 - Laravel - ControleSeries\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 855
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
Por exemplo