View Issue Details

IDProjectCategoryView StatusLast Update
0000553WackoWikicorepublic2022-01-11 16:34
Reporteradministrator Assigned Toadministrator  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.5.16 
Target Version6.0.27Fixed in Version6.0.27 
Summary0000553: PHP Notice: Trying to access array offset on value of type null
DescriptionsPHP 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
2019-12-14 13:24 administrator Note Added: 0001079
2022-01-11 16:34 administrator Status assigned => resolved
2022-01-11 16:34 administrator Resolution open => fixed
2022-01-11 16:34 administrator Fixed in Version => 6.0.27
2022-01-11 16:34 administrator Target Version 6.0.x => 6.0.27
2022-01-11 16:34 administrator Description Updated