Help us understand the problem. What is going on with this article?

Laravel5.7 で Blade の or が削除される

More than 1 year has passed since last update.

Update Your Blade Templates to Use the Null Coalesce Operator - Laravel News
https://laravel-news.com/blade-templates-null-coalesce-operator

Laravelはばっさり行くよな…。PHP7なら不要とはいえこんなの互換のために残せばいいのに。

{{ $name or 'Guest' }}

こう変更。

{{ $name ?? 'Guest' }}

非推奨にして移行期間設けるわけでもなく半年後の次期バージョンで即削除。
仕方ないので今の内から修正作業していくしかない。

  • 急に大きな変更されたら困る→LTS版使え。
  • 0.0.1のマイナーバージョンではBREAKING CHANGEは絶対に含めない。
  • その代わり0.1のメジャーバージョンでは遠慮なく破壊する。

最近はこんな方針。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away