Re: Suggestion: Inconsistency: Allow array spread operator to work on string keys

From: Date: Wed, 02 Dec 2020 18:25:34 +0000
Subject: Re: Suggestion: Inconsistency: Allow array spread operator to work on string keys
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-112381@lists.php.net to get a copy of this message
> > The reason why this has been deferred is because of which semantics should > be used for duplicate string keys. > > Do we use the addition between two arrays semantics or the array_merge() > semantics? See: https://3v4l.org/7QbWv > > As the previous RFC you linked initially wanted to use the array_merge() > semantics. But due to contention was left out. > > Best regards, > > George P. Banyard Does the loose interpretation of an array also play into this?? [“string” => true, 10 => false] Another new-to-internals questions, does the check only look at if the keys contain one that is a string, that they’re all integers (not float), that they’re all sequential?? Cheers, Josh

« previous php.internals (#112381) next »