« first day (4896 days earlier)      last day (277 days later) » 

10:13
Morning All
from switching from a feature branch to master branch in git composer's autloload.php file is vanished....have you witnessed such behavior yourselves?
 
2 hours later…
12:39
I know there isn't a keyword in PHP to mark a class as open for inheritance (the opposite of final), but is there a built-in attribute to do that?
no
because... could you perhaps not just add "final" in these cases?
13:18
wat
Open to inheritance is the opposite of final
It seems to me there would be application for Override to apply to classes, if PHP is never going to have a proper keyword for it
But why? If you expect an entire class to be overridden, making it abstract would accomplish the same goals
13:42
@QuolonelQuestions What problem are you solving, exactly?
Someone at work was proposing we implement a "style" checker to enforce "final". I argue that it's a good idea in principal, except that the checker cannot know if the absence of final is a mistake or an intentional architectural decision because there is no keyword to so mark a class as (intentionally) open for extension
Now it could be solved by the style checker adding its own custom attribute but I think it would be better solved in the language itself
Well, as @MarkR said, you could use "abstract" to indicate "this class MUST be extended", to contrast final's "this class MUST NOT be extended."

What is missing is a "this class MAY be extended." I doubt the language at large would benefit from such a marker, since that is the default and the default is basically locked in forever. But a custom #[Extendable] attribute (or whatever) that your style checker can use would be fairly trivial to implement yourself.
Why shouldn't such an attribute be built-in?
14:02
What would the engine actually do with it?
It couldn't enforce anything on it, since it's an optional-behavior. (You don't have to extend it, you don't have to not-extend it.)
The engine would do absolutely nothing
14:26
But then what's the point of providing it? If it is of use for your tool, you can define the attribute yourself. I'd argue classes should've been closed by default, but that's out of the question now.
That's arguably the point of attributes imo, to allow annotating in userland where new modifiers cannot be invented. For internal things, new keywords are usually preferable, unless the use-case is niche or there is a concern for BC breaks due to the introduction of a keyword.
15:01
If the determiner is that the engine must do something useful with it then I accept it does not belong. However, the tool is not "mine", it's PHPCS. Maybe you've heard of it
15:55
Once or twice. :-)
But PHP-CS is free to define an attribute that it will recognize and everything else will ignore. That's attributes By Design(tm).
16:36
Any idea if the PECL server is having a little lay down ?
I can connect but attempting to access pecl.php.net/redis times out
let me see
@MarkR Works now? :-/
There is lots of traffic. Somebody might have hit an uncached url or something
I was able to load the page that time, although it took 30 seconds
16:52
There is too much traffic to isolate a single request for me right now.
Copy that. Thanks for taking a look.
 
3 hours later…
20:14
@bwoebi Investigating this is on my todo list, but the challenges around performance are the same. The work I did can be used as a foundation for both styles of type inference, so it's possible to try both
20:51
@ArnaudLeBlanc yeah, I didn't mean it regarding perf, but regarding getting a better match on the expected output type. But yes, you'll probably need both.
I also wonder whether it's possible to widen a template type at runtime after an objects construction on template type mismatch with the concrete zval type.
But maybe that's not needed.

« first day (4896 days earlier)      last day (277 days later) »