升级 PHP 7.4 后:Trying to access array offset on value of type null 发布于 2021年4月2日 今天把 PHP 从7.3升级到7.4版本,然后 Lumen 框架报错了:Trying to access array offset on value of type null PHP 7.4 有一条不向后兼容的变更: 以数组形式访问非数组 尝试以数组方式访问 null,bool, int,float 或 resource (例如 $null["key"])将会抛出 notice 通知。 分类至 PHP, 含 0条评论