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

Add support to php 8.1 #1013

Closed
gnovaro opened this issue Jun 6, 2022 · 2 comments
Closed

Add support to php 8.1 #1013

gnovaro opened this issue Jun 6, 2022 · 2 comments

Comments

@gnovaro
Copy link

gnovaro commented Jun 6, 2022

Bug report

Title

Before install i get a few errors

Issue Description

Compatiblity issues with newer version

Preconditions

  • Linux
  • Latest version from main

Steps to reproduce

Just install in a 8.1 and run composer

Expected result

Success without any warnings

Actual result

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 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1443 Stack trace: #0 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(13): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /var/www/crm.roskus.com/vendor/composer/ClassLoader.php(571): include('...') #2 /var/www/crm.roskus.com/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile() #3 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass() #4 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(130): collect() #5 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(106): Illuminate\Foundation\PackageManifest->build() #6 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): Illuminate\Foundation\PackageManifest->getManifest() #7 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config() #8 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases() #9 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap() #10 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith() #11 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\Foundation\Console\Kernel->bootstrap() #12 /var/www/crm.roskus.com/artisan(37): Illuminate\Foundation\Console\Kernel->handle() #13 {main} in /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php on line 13 PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Collection" not found in /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Collections/helpers.php:15 Stack trace: #0 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Support/Traits/ReflectsClosures.php(24): collect() #1 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Support/Traits/ReflectsClosures.php(44): Illuminate\Foundation\Exceptions\ReportableHandler->closureParameterTypes() #2 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/ReportableHandler.php(62): Illuminate\Foundation\Exceptions\ReportableHandler->firstClosureParameterType() #3 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(234): Illuminate\Foundation\Exceptions\ReportableHandler->handles() #4 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(88): Illuminate\Foundation\Exceptions\Handler->report() #5 /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(130): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException() #6 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown() #7 {main} thrown in /var/www/crm.roskus.com/vendor/laravel/framework/src/Illuminate/Collections/helpers.php on line 15

Tell us what happens instead.
I get a compatibility issue i think or a missing dependency imported

@jitendra-webkul
Copy link
Member

@Aqib-Webkul also upgrade to Laravel 9 too

@jitendra-webkul jitendra-webkul assigned ghost Aug 30, 2022
@ghost ghost added the In Progress label Aug 30, 2022
jitendra-webkul added a commit that referenced this issue Sep 6, 2022
@jitendra-webkul
Copy link
Member

@gnovaro now supports PHP 8.1 and also upgraded to the Laravel 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants