Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123922 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id C83631A009C for ; Thu, 27 Jun 2024 04:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719463751; bh=/a5Z6IGdYsV6btMWSHHExAHgfhWdwDkfD1g8OvFYVh0=; h=Date:Subject:To:References:From:In-Reply-To:From; b=avvyZbp34ve56IsByxHMYS5XwRaz8+iuR0R1JAYeGEBcnrTRMZYWKZNFeK4+yzJU6 Fs/Ac/fhVyEvc9zssDfrDZcu+p/w9RQry1fXjvy2JbfsoBtrFPmYW7gVDlUbZ3B16C v3Tb6+CaFQfyA59amuHMkAd8MemFaD2EwOB1gTJ6pIsveBnLRGSXr400dl++v+rl5k lcXwwe9c9nbMARzYMeEED6GYOriEF0Mz2GDsnjS7SAAwpOZCPbJ34Irfcq67rWzDqr AGVh7y3zPH6c98VwhRGACUwszwDXkbXe6V9QYG2Jkt2i7iwD/Zi3VeQw3pH+UjHqZ6 WoEYdFxuwgBhA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 21147180D9C for ; Thu, 27 Jun 2024 04:49:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from megan.smtp.mailx.hosts.net.nz (megan.smtp.mailx.hosts.net.nz [43.245.52.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 27 Jun 2024 04:49:08 +0000 (UTC) Received: from 222-152-65-7-vdsl.sparkbb.co.nz ([222.152.65.7] helo=[192.168.1.67]) by megan.smtp.mailx.hosts.net.nz with esmtpsa authed as varteg.nz (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.96) (envelope-from ) id 1sMh2v-001zU7-0h for internals@lists.php.net; Thu, 27 Jun 2024 16:47:45 +1200 Message-ID: <5ec10d0a-134a-433d-9994-babf06f4d6cc@varteg.nz> Date: Thu, 27 Jun 2024 16:47:30 +1200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [Early Feedback] Pattern matching To: internals@lists.php.net References: <2a6b92eb-d5e9-4a1a-9548-a068ac42ebd2@app.fastmail.com> <97a93ae2-5202-47eb-bf51-ec1e976ea765@app.fastmail.com> <78D0FFF7-3867-4D71-B0C0-FA23E5121C39@rwec.co.uk> <10390963-0c2c-441a-bcce-20a0433948c5@app.fastmail.com> Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Hosts-DKIM-Check: none From: weedpacket@varteg.nz (Morgan) 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