Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104097 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65039 invoked from network); 4 Feb 2019 10:53:02 -0000 Received: from unknown (HELO mail-ed1-f49.google.com) (209.85.208.49) by pb1.pair.com with SMTP; 4 Feb 2019 10:53:02 -0000 Received: by mail-ed1-f49.google.com with SMTP id h15so10389675edb.4 for ; Sun, 03 Feb 2019 23:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ivmev+JHOC0k9sDu4FEaC17gKanAjPfkThz7xS2PUDw=; b=QAxMQDhThrjY+Rnpj1Kdoad7h5HYSUh3LfSW9x1G+8mr+qm8w+NQRB6XdMyyvt5r7m g4jK4BljWVnGAihWyttSAT6q4ai6VbOWRTF+9Tqb/9TOoSX8ol8P2x0ai4F2PGTtm6e6 a+X6muN7ZGIARM6Z7chV2kvsQga7orJqjjhJn7j5VZOJ3N1JJkaD5i10s4CO2ZlxT/YE whRAq2a74D5CpmvxqvIB2WnaEYLUIohd/Yul2gu5tkgS3bKDgsJv4fFhxABxPc5i9QP9 ZRW3gSJe0onapHxUIBXopxQeBvVEDi0T/LhDuUm/TCacGKRjWgx+bGTgd3+klycOyVzy RYmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ivmev+JHOC0k9sDu4FEaC17gKanAjPfkThz7xS2PUDw=; b=JFQG+aMQGA1M7LtT+VeSgrC/Miq3pXF9H6HNE4g7B5VVNoi/GSd0yprMV8jio9Ep2U Afix9s91P7e+R00xLgDBeREaVFFYTiEqxjTlE7zaSx9GKVuAFiopNh7AbvoQhI6ZybBl fTQQh+cbXWGdGvkBabx6Xb0WFCVthVRLoH109T4CuPtv2O90rCoXjluZ8vUlGfCA1Ual bGPp698vy3o6iT+oD8Jfrn/j/uu6+4Pl0sLhhWvFODtYR2b7OpCSZgU8ln5t/ibn2Ewz q/wDw4dvI2L23DZxaOH1dDa5PbyIbHf4MYtkX6fiBykPt6zHesof1AuRsFjgA9ht8NTk D9Lw== X-Gm-Message-State: AJcUukdryCiq8d/6q4waPSAjQ9dO6oWgjvyEg4wqPQ6rXfSfHo7GtFB7 HY2SPXHiTLGADvtc0IIc952UPM+x X-Google-Smtp-Source: ALg8bN7QCz6i7Ld46oYe5ZissWwxyhboJIiOoXnB3az4nwQJaDyIdU7/ei9GiGDTOUZ2OlnZEgRymw== X-Received: by 2002:a50:ed03:: with SMTP id j3mr49543173eds.134.1549265631783; Sun, 03 Feb 2019 23:33:51 -0800 (PST) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id k31sm4073619ede.5.2019.02.03.23.33.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Feb 2019 23:33:50 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) In-Reply-To: Date: Mon, 4 Feb 2019 08:33:49 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Wes X-Mailer: Apple Mail (2.3445.102.3) Subject: Re: [PHP-DEV][RFC] Allow void return type variance From: claude.pache@gmail.com (Claude Pache) > Le 4 f=C3=A9vr. 2019 =C3=A0 04:22, Wes a =C3=A9cri= t : >=20 > Hello PHPeeps! >=20 > Recent events convinced me to write this RFC :P >=20 > Please have a read here https://wiki.php.net/rfc/allow-void-variance >=20 > I am targeting all the supported PHP versions because this is mainly = to > placate the discontent that arised by PHPUnit enforcing its users to = use > void, so waiting 7.4 doesn't make much sense. >=20 > FTR this is an improvement regardless of PHPUnit, and it's IMO a very > reasonable change. >=20 > Thank you for your time. >=20 > Wes The RFC says: =E2=80=9CChanging from void to something else is very = probably a bad idea, but PHP should not enforce void in subclasses just = on that basis.=E2=80=9D =E2=80=94 If it is =E2=80=9Cvery probably=E2=80=9D= a bad idea, why do people want to do that? What are the use cases? = (Sorry, I=E2=80=99ve not followed the =E2=80=9Crecent events=E2=80=9D = you alludes to.) =E2=80=94Claude=