[php-src] Issue #8477: Enum definition isn't evaluated as expected

From: Date: Mon, 02 May 2022 07:05:23 +0000
Subject: [php-src] Issue #8477: Enum definition isn't evaluated as expected
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241363@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8477 Comment Author: iluuu1994 This is expected behavior. Enums automatically implement interfaces which break class hoisting. Read this blog for an explanation: https://www.npopov.com/2021/10/20/Early-binding-in-PHP.html To fix this, declare your enum before you use it.

« previous php.bugs (#241363) next »