i need help to solve this error in Laravel project

i need help to solve this error in Laravel project 

when run project using commmand this error show me

 > @php artisan package:discover

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:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Support\Collection.php:1693

Stack trace:

#0 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Support\Collection.php(19): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, ‘Return type of …’, ‘C:\\xampp\\htdocs…’, 1693)

#1 C:\xampp\htdocs\bustracking_multi\vendor\composer\ClassLoader.php(571): include(‘C:\\xampp\\htdocs…’)

#2 C:\xampp\htdocs\bustracking_multi\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile(‘C:\\xampp\\htdocs…’)

#3 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Support\helpers.php(423): Composer\Autoload\ClassLoader->loadClass(‘Illuminate\\Supp…’)

#4 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php(121): collect(Array)

#5 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php(97): Illuminate\Foundation\PackageManifest->build()

#6 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\PackageManifest.php(80): Illuminate\Foundation\PackageManifest->getManifest()

#7 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()

#8 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(213): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))

#9 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(296): Illuminate\Foundation\Application->bootstrapWith(Array)

#10 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(119): Illuminate\Foundation\Console\Kernel->bootstrap()

#11 C:\xampp\htdocs\bustracking_multi\artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

#12 {main} in C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Support\Collection.php on line 19

PHP Fatal error:  Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php:811

Stack trace:

#0 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(811): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, ‘Method Reflecti…’, ‘C:\\xampp\\htdocs…’, 811)

#1 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(780): Illuminate\Container\Container->resolveDependencies(Array)

#2 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(631): Illuminate\Container\Container->build(‘App\\Exceptions\\…’)

#3 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(586): Illuminate\Container\Container->resolve(‘App\\Exceptions\\…’, Array)

#4 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(732): Illuminate\Container\Container->make(‘App\\Exceptions\\…’, Array)

#5 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(256): Illuminate\Foundation\Application->make(‘App\\Exceptions\\…’, Array)

#6 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(749): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Foundation\Application), Array)

#7 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(631): Illuminate\Container\Container->build(Object(Closure))

#8 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php(586): Illuminate\Container\Container->resolve(‘Illuminate\\Cont…’, Array)

#9 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(732): Illuminate\Container\Container->make(‘Illuminate\\Cont…’, Array)

#10 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(159): Illuminate\Foundation\Application->make(‘Illuminate\\Cont…’)

#11 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(101): Illuminate\Foundation\Bootstrap\HandleExceptions->getExceptionHandler()

#12 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(87): Illuminate\Foundation\Bootstrap\HandleExceptions->renderForConsole(Object(ErrorException))

#13 C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(123): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(ErrorException))

#14 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()

#15 {main}

  thrown in C:\xampp\htdocs\bustracking_multi\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 811

Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!

error: Content is protected !!