- Issue created by @amanire
- Status changed to Needs review
over 1 year ago 3:29pm 17 May 2024 - First commit to issue fork.
- Merge request !7Use null coalescing operator to avoid array key warning β (Open) created by kevinquillen
- π¨π¦Canada darkodev
This fix still throws the error for us.
This PHP 8.2 null coalescing operator basic example throws same error.
We should use isset() to check the key exists.$a = ['key' => 'value']; $b = (is_array($a['not_a_key'])) ? $a : []; print_r($b);
Warning: Undefined array key "not_a_key"