Facebook
From Beige Water Vole, 2 Years ago, written in Plain Text.
This paste is a reply to Laravel error deprecated from Mat - go back
Embed
Viewing differences between Laravel error deprecated and Re: Laravel error deprecated
bash-3.2# php artisan --version
PHP Deprecated:  Return type of Illuminate\Container\Container::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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1267

Deprecated: Return type of Illuminate\Container\Container::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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1267
PHP Deprecated:  Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1278

Deprecated: Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1278
PHP Deprecated:  Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1290

Deprecated: Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1290
PHP Deprecated:  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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1303

Deprecated: 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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1303
PHP Deprecated:  Return type of Illuminate\Config\Repository::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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 141

Deprecated: Return type of Illuminate\Config\Repository::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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 141
PHP Deprecated:  Return type of Illuminate\Config\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 152

Deprecated: Return type of Illuminate\Config\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 152
PHP Deprecated:  Return type of Illuminate\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 164

Deprecated: Return type of Illuminate\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 164
PHP Deprecated:  Return type of Illuminate\Config\Repository::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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 175

Deprecated: Return type of Illuminate\Config\Repository::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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 175
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 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1354
Stack trace:
#0 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(11): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Return type of ...', '/Users/matteo/D...', 1354)
#1 /Users/mat/project/src/vendor/composer/ClassLoader.php(571): include('/Users/matteo/D...')
#2 /Users/mat/project/src/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/Users/matteo/D...')
#3 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass('Illuminate\\Supp...')
#4 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(130): collect(Array)
#5 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(106): Illuminate\Foundation\PackageManifest->build()
#6 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): Illuminate\Foundation\PackageManifest->getManifest()
#7 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config('aliases')
#8 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#9 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(230): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))
#10 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith(Array)
#11 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\Foundation\Console\Kernel->bootstrap()
#12 /Users/mat/project/src/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 {main} in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/Collection.php on line 11

In Collection.php line 11:
                                                                                                                                                                                                                                          
  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 #[\ReturnTypeWill  
  Change] attribute should be used to temporarily suppress the notice in /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1354                                      
  Stack trace:                                                                                                                                                                                                                            
  #0 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(11): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Return type of ...', '/Users/matte  
  o/D...', 1354)                                                                                                                                                                                                                          
  #1 /Users/mat/project/src/vendor/composer/ClassLoader.php(571): include('/Users/matteo/D...')                                                                                                              
  #2 /Users/mat/project/src/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/Users/matteo/D...')                                                                                        
  #3 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass('Illuminate\\Supp...')                                             
  #4 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(130): collect(Array)                                                                                      
  #5 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(106): Illuminate\Foundation\PackageManifest->build()                                                      
  #6 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): Illuminate\Foundation\PackageManifest->getManifest()                                                 
  #7 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config('aliases')                                             
  #8 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()                                           
  #9 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(230): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))   
  #10 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith(Array)                                             
  #11 /Users/mat/project/src/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\Foundation\Console\Kernel->bootstrap()                                                   
  #12 /Users/mat/project/src/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))            
  #13 {main}                                                                                                                                                                                                                              
                                                                                                                                                                                                                                          

bash-3.2#