Re: [RFC] [Discussion] Never parameters

From: Date: Thu, 20 Mar 2025 20:04:15 +0000
Subject: Re: [RFC] [Discussion] Never parameters
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-126878@lists.php.net to get a copy of this message
On 2025-03-20 18:50, Daniel Scherzer wrote:
The original inspiration which I discussed in the RFC is fixing the signature of the BackedEnum methods, which currently use the second option.
Hey, I'm not opposed to having a bottom type, but the try/tryFrom issue feels caused by another shortcoming. In my viewfrom and tryFrom are factory methods that construct an instance by being called on the class itself. As such they should not be subject to LSP at all, just like __construct is not. BR, Juris

« previous php.internals (#126878) next »