Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127559 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 lists.php.net (Postfix) with ESMTPS id 4B23D1A00BC for ; Tue, 3 Jun 2025 15:16:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748963644; bh=/s/3Sjd/ZHa2AVpaBLlF8qSappGE261wWnT3Ni8y6VU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jOcaWOrqYID0iySdtWs5oUcXd2LZE7wJuewgwl5RH5Ggw6w0eEvxmXelQJsnW08aj YmsA95LJj9oqTEOBT4ZZ7juUhMDFotVqa1Yx4XIwD1H714SumJL/NcRjZndsLkYSJf eZT6ioYa5H48M+kOyR8Rn1YSMGNOw9YqNkiEVrADOKiN0M9G9RflQ9o+u7fAGZt2Mk 8IAvbmKsYvf4umon0IJGtis+OyQO17TQWvnmAhzOoCepCM6U8nNIPBgH5Z6FNJEhSU MXbmbG8yOhhoYJmOAWdBOd5UMyhKzylQFjML/+vRuYUV1GNnqft1dI6Oo80UV93/bo iloGtCvSGU8nQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E728F180056 for ; Tue, 3 Jun 2025 15:13:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Jun 2025 15:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1748963761; bh=rEDaYqAGzzCSkZAOTAHrPV4pVAs0T8jn6ZKdZdPsGTY=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=IiD6lLVv2S5n8pKzuaJi5lk284ssQwfnLMv6i260JPf/GktPl9sA+uy2L3ednDZxp Q505eFZ1683fOKWzEbHunJD8sqIDAzc7+w8Yw8rabk2D+wicsjKGG8BU1bqw3d2XEt hPFOMz0lgQpnGID7WzXbX45I/dePAQ8zngX49bUrmCmugRnEYN8E+90Yq78FlCXkWK QqBnIwabtP9I+fTC5VnOHf0HHYRak4dcGQ8k8yjlDpOWS7PpsBs4HlzzUOyp6MP6DC rAuZ9bnBwnRWUraYqR5EkimFCQHts2BTL5Wtq5RqzBfyKCZ3n2LnVBqtZtzCbDiZe3 0Ux/UGUZldCYg== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 03 Jun 2025 17:16:01 +0200 To: Ilija Tovilo Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Transform void into an alias for null In-Reply-To: References: <6Z2Ysh6MjYp1nyzuB0bTPJc5srObIcMRqt731JaQeXUJk1f_V_Yo2nRn8WvjI7er7pp7pIUE6WYl5pRwvYrtcrd07nCutyAqKPSsZHmrS-Y=@gpb.moe> Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-06-03 01:46, schrieb Ilija Tovilo: > IMO, these checks are useful enough not to be removed. I agree with Ilija (and also Rowan). To me there is an important semantic difference between “not returning anything” and “always returning null”. I believe that `void` being in a distinct type hierarchy is the right choice and when considering “untyped returns” to be soft-deprecated / discouraged, there are no inconsistencies either. Best regards Tim Düsterhus