On 2024-06-27 12:41, Chuck Adams wrote:
There’s some difference though[] is [?’foo’ => $x is string] // matches, $x === null
Except null is not a string. > There’s a precedent with function parameters: > > function foo(string $bar = null) // $bar is string|null > which has already been voted for deprecation in 8.4: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
