質問編集履歴
1
・開発環境や各バージョン追記 ・エラー文追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -57,6 +57,33 @@
|
|
57
57
|
前回インストールしたのが**laravel8.x**だったのが原因かlaravel8はインストールできます。「**composer create-project laravel/laravel blog "8.*" --prefer-dist**」
|
58
58
|
Collection.phpのエラーは、添付画像のように「**Method 'Illuminate\Support\Collection::getIterator()' is not compatible with method 'Illuminate\Support\Enumerable::getIterator()'.intelephense(1038)**」
|
59
59
|
といくつかのメソッドがエラーとなっています。
|
60
|
+
ご指摘ありがとうございます。
|
61
|
+
**開発環境**
|
62
|
+
**OS:macOS Monterey 12.1**
|
63
|
+
**PHPとMySQLの開発環境はMAMPを使用しております。**
|
64
|
+
**各バージョン**
|
65
|
+
**PHP8.0.3**
|
66
|
+
**Homebrew 3.3.7**
|
67
|
+
**Composer 2.2.3**
|
60
68
|
どなたか解決方法はわかりますでしょうか?
|
61
69
|
自分でもエラーを調べてみたのですが、解決できない状態です。
|
62
|
-
よろしくお願い致します。
|
70
|
+
よろしくお願い致します。
|
71
|
+
|
72
|
+
追記で、エラーが起こっている可能性の文言がありましたので記載します。こちらも翻訳をかけてみたりして調べたのですが解決できておりません。
|
73
|
+
何かヒントとなるようなものでも構いませんのでご教授お願い致します。
|
74
|
+
|
75
|
+
```ここに言語を入力
|
76
|
+
Deprecation Notice: Return type of Illuminate\Container\Container::offsetExists($key) should either be
|
77
|
+
compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange]
|
78
|
+
attribute should be used to temporarily suppress the notice in
|
79
|
+
/Applications/MAMP/htdocs/laravel6/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php
|
80
|
+
:1231
|
81
|
+
```
|
82
|
+
```ここに言語を入力
|
83
|
+
> @php artisan package:discover --ansi
|
84
|
+
PHP Deprecated: Return type of Illuminate\Container\Container::offsetExists($key) should either be
|
85
|
+
compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange]
|
86
|
+
attribute should be used to temporarily suppress the notice in
|
87
|
+
/Applications/MAMP/htdocs/laravel6/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php
|
88
|
+
on line 1231
|
89
|
+
```
|