LoginSignup
0
0

More than 3 years have passed since last update.

PHP 7.4 でTrying to access offset on value of type nullのエラーが出た

Posted at

概要

Twitter APIを利用して、ポートフォリオを作成中、たまに出てくるこのエラー。

Trying to access offset on value of type null

このエラーを解決するまでの方法をメモ。

環境

laravel : 7.13.0
PHP : 7.4.5

※2020/6/2時点で共に最新バージョン。

原因

調べてみるとPHPのバージョンが違うことにより、起こったエラー。

詳しいところは分かりませんが、PHP7.4が原因みたいです。

解決策

PHPをダウングレードしたら解消しました。

PHP7.4.5 ➡️ PHP7.2.31

Homebrew で PHP7.2 をインストール

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0