初めまして。
現在初心者でプログラミングの勉強をしております。
laravelでWEBアプリを制作しようとしているのですが、
ターミナルにてphp artisan listと入力すると以下のようにエラーが出てしまいます。
使えるようになるにはどうしたらいいのでしょうか?
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 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1231
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 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1242
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 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1254
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 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1267
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 /Applications/MAMP/htdocs/laravelproject/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 /Applications/MAMP/htdocs/laravelproject/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 /Applications/MAMP/htdocs/laravelproject/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 /Applications/MAMP/htdocs/laravelproject/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 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1277
Stack trace:
#0 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/Collection.php(11): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Return type of ...', '/Applications/M...', 1277)
#1 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php(571): include('/Applications/M...')
#2 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/Applications/M...')
#3 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/helpers.php(109): Composer\Autoload\ClassLoader->loadClass('Illuminate\Supp...')
#4 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): collect(Array)
#5 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config('aliases')
#6 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(219): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))
#8 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): Illuminate\Foundation\Application->bootstrapWith(Array)
#9 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Foundation\Console\Kernel->bootstrap()
#10 /Applications/MAMP/htdocs/laravelproject/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 {main} in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/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 compatib
le with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTyp
eWillChange] attribute should be used to temporarily suppress the notice in
/Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illu
minate/Support/Collection.php:1277
Stack trace:
#0 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Support/Collection.php(11): Illuminate\Foundation\Bootstrap\Handle
Exceptions->handleError(8192, 'Return type of ...', '/Applications/M...', 1
277)
#1 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php
(571): include('/Applications/M...')
#2 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php
(428): Composer\Autoload\includeFile('/Applications/M...')
#3 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Support/helpers.php(109): Composer\Autoload\ClassLoader->loadClass
('Illuminate\Supp...')
#4 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/PackageManifest.php(89): collect(Array)
#5 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageM
anifest->config('aliases')
#6 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundatio
n\PackageManifest->aliases()
#7 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Application.php(219): Illuminate\Foundation\Bootstrap\R
egisterFacades->bootstrap(Object(Illuminate\Foundation\Application))
#8 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Console/Kernel.php(320): Illuminate\Foundation\Applicat
ion->bootstrapWith(Array)
#9 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Console/Kernel.php(129): Illuminate\Foundation\Console\
Kernel->bootstrap()
#10 /Applications/MAMP/htdocs/laravelproject/artisan(37): Illuminate\Founda
tion\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInpu
t), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 {main}
使用環境
MacBook Air (Retina, 13-inch, 2020)
MAMP
※知識が少なく質問のし方など至らない点が多いですが、ご教授いただけますと幸いです。

あなたの回答
tips
プレビュー