PHP7 の関数の戻り値の型メモ - Qiitahttps://qiita.com/niisan-tokyo/items/af3718a6d67d3e29d686> 関数定義内の返却値が戻り値の宣言型と異なっている場合は、宣言型に合わせた形で返却されます。
エラーではないのか……
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.