View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000553 | WackoWiki | core | public | 2019-12-12 12:08 | 2022-01-11 16:34 |
Reporter | administrator | Assigned To | administrator | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.5.16 | ||||
Target Version | 6.0.27 | Fixed in Version | 6.0.27 | ||
Summary | 0000553: PHP Notice: Trying to access array offset on value of type null | ||||
Description | sPHP 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 Information | https://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 | ||||
Tags | PHP 7.4 | ||||
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 |