Bug #80824 [Opn->Nab]: Illegal offset type
| From: | requinix@php.net | Date: | Wed, 03 Mar 2021 08:03:24 +0000 |
| Subject: | Bug #80824 [Opn->Nab]: Illegal offset type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232493@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80824&edit=1
ID: 80824
Updated by: requinix@php.net
Reported by: ffilipe0 at hotmail dot com
Summary: Illegal offset type
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Linux
PHP Version: 8.0.2
Block user comment: N
Private report: N
New Comment:
Yes, that's right.
https://www.php.net/manual/en/migration80.incompatible.php
> A number of warnings have been converted into Error exceptions:
>
> * Attempting to use an invalid type (array or object) as an array key or string
> offset.
Previous Comments:
------------------------------------------------------------------------
[2021-03-03 07:58:08] ffilipe0 at hotmail dot com
Description:
------------
PHP 8.0.2 (CLI) is handling illegal offset type has a fatal error.
PHP Fatal error: Uncaught TypeError: Illegal offset type
Test script:
---------------
$newUser = new User($socket);
$this->users[$socket] = $newUser;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80824&edit=1