View Issue Details

IDProjectCategoryView StatusLast Update
0000553WackoWikicorepublic2019-12-14 13:24
Reporteradministrator Assigned Toadministrator  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version5.5.16 
Target Version6.0.x 
Summary0000553: PHP Notice: Trying to access array offset on value of type null
DescriptionPHP 7.4 introduces a "Trying to access array offset on value of type ..." warning for accessing null/bool/int/float/resource as if it were an array.

Previously PHP already threw a warning when you would attempt to use an offset that is of an invalid type. Now PHP will also throw a warning when a container is of an invalid type.

type checking:

isset($array['value'])

$variable = $array['value'] ?? null;

if($array !== false)

if (isset($array['value']['type']) && 'file' === $array['value']['type'])
Additional Informationhttps://wiki.php.net/rfc/notice-for-non-valid-array-container
https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.non-array-access
TagsPHP 7.4

Issue History

Date Modified Username Field Change
2019-12-12 12:08 administrator New Issue
2019-12-12 12:08 administrator Status new => assigned
2019-12-12 12:08 administrator Assigned To => administrator
2019-12-12 12:08 administrator Tag Attached: PHP 7.4
2019-12-12 12:19 administrator Description Updated View Revisions
2019-12-14 13:24 administrator Note Added: 0001079