Le 28 mai 2022 11:44:13 GMT+02:00, Ilija Tovilo a
écrit :
>Hi everyone
>
>I'd like to start a discussion on a simple RFC to allow fetching
>properties in constant expressions.
>https://wiki.php.net/rfc/fetch_property_in_const_expressions
>
>The RFC proposes adding support for fetching properties
On Mon, May 30, 2022 at 4:59 PM Rowan Tommins wrote:
>
> The actual code in this case ended up in a generic routine that used
> isset() to choose which SQL to generate. An empty string would generate
> a WHERE clause that matched zero rows, but a null would omit the WHERE
> clause entirely, and ma
On 30/05/2022 15:04, Guilliam Xavier wrote:
For this specific example, shouldn't it rather [already] be like this anyway?
function getByIdentifier(string $identifier) {
if ( $identifier === '' ) {
throw new InvalidArgumentException("Empty identifier");
}
// ...
}
(b
Hi Dan, just an error in this part:
> Or if support for less than PHP 8.1 can be dropped, using the first
> class callable syntax
> https://wiki.php.net/rfc/first_class_callable_syntax :
>
> if (is_callable(static::methodName(...))) {
> static::methodName();
> }
>
> or
>
> $fn = static::method
On Tue, May 24, 2022 at 10:47 AM Rowan Tommins wrote:
>
> As an anecdote, I was recently working on a bug involving nulls causing
> unintended behaviour in an API. As part of the clean-up, I changed a
> function signature from getByIdentifer($identifier) to
> getByIdentifer(string $identifier), an
On Sun, May 29, 2022 at 10:09 PM Ben Ramsey wrote:
>
> On 5/29/22 09:57, Andreas Heigl wrote:
> > But the bad news is, that there is also the colobus system which powers
> > the NNTP-server backend that a number of people use to interact with the
> > mailing-list. Which also has an authentication