Re: [PHP-DEV] RFC [Concept] - Interface Properties

2023-05-27 Thread David Gebler
On Sat, May 27, 2023 at 9:44 PM Zoltán Fekete wrote: > Abstract class could help this but it’s like using a > tube wrench for a nut. Also one class can extend only one abstract class. > By > simply defining interfaces with properties would save a lot of boilerplate > code > and there would be no

[PHP-DEV] mb_ucfirst and mb_lcfirst

2023-05-27 Thread Niels Dossche
Hey internals I recently saw a comment on Reddit about the lack of a multibyte version of ucfirst and lcfirst. I was surprised to see this is indeed the case. I also checked the modes of mb_convert_case: the closest supported one is title case, but there's no mode for only handling the first let

Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override])

2023-05-27 Thread Rowan Tommins
On 27 May 2023 11:40:44 BST, Dan Ackroyd wrote: >On Mon, 22 May 2023 at 22:32, David Gebler wrote: >> >> either you use static analysis tools as part of your PHP workflow, because >> you care about that stuff, or you don't. > >I these words imply an unpleasant connotation; that people who don't

Re: [PHP-DEV] RFC [Concept] - Interface Properties

2023-05-27 Thread Zoltán Fekete
> I wouldn't support this, personally. The reason interfaces in most > languages which have this concept don't support defining properties is > first because they are generally seen as an implementation detail rather > than a promise about supported behaviour and second because interfaces are > es

Re: [PHP-DEV] RFC [Concept] - Interface Properties

2023-05-27 Thread David Gebler
On Sat, May 27, 2023 at 6:24 PM Larry Garfield wrote: > On Sat, May 27, 2023, at 1:39 AM, Nick Humphries wrote: > > Hello internals, > > > > Based on a few discussions I've had recently, my team and I couldn't > > think of any reason why we shouldn't have properties on interfaces as > > I wouldn'

Re: [PHP-DEV] RFC [Concept] - Interface Properties

2023-05-27 Thread Larry Garfield
On Sat, May 27, 2023, at 1:39 AM, Nick Humphries wrote: > Hello internals, > > Based on a few discussions I've had recently, my team and I couldn't > think of any reason why we shouldn't have properties on interfaces as > it is common for these to be specified in doc blocks currently. > Timing-w

Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override])

2023-05-27 Thread Dan Ackroyd
On Mon, 22 May 2023 at 22:32, David Gebler wrote: > > either you use static analysis tools as part of your PHP workflow, because > you care about that stuff, or you don't. I these words imply an unpleasant connotation; that people who don't use static analysis tools are bad people who don't care