Re: [RFC] Allow object keys in arrays

From: Date: Wed, 13 Jan 2021 06:14:54 +0000
Subject: Re: [RFC] Allow object keys in arrays
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-112859@lists.php.net to get a copy of this message
This proposal is interesting, and I see why the enum proposal makes it useful. Supporting this will mean a small amount of work for me (assuming it passes) and other static analysis tools, but I don't want that to factor into anyone's decision. I am curious, though, whether the scope of this RFC could be narrowed to just allowing enum cases as keys? That might avoid issues with objects that cannot be cast to string.

« previous php.internals (#112859) next »