Re: [PHP-DEV] Empower Callables with Function Signature Hints

2021-04-07 Thread Saif Eddin Gmati
Hello Hamza, I think this is something that has been discussed here before. function types already exist in HackLang: https://docs.hhvm.com/hack/functions/introduction#function-types, And, if we would follow the same syntax `(function(T, T): T)` or `(callable(T, T): T)`, PHP needs to first

Re: [PHP-DEV] [RFC] [Discussion] Adding return types to internal methods

2021-04-07 Thread Nicolas Grekas
> For userland, there are already ways to declare the planned return type >> (aka @return in phpdoc), so we might not need any new way to declare this >> from the engine pov. >> > > Yes, I think I agree, but I'd be curious about Nikita's opinion as well, > since he brought up this problem first. >

[PHP-DEV] Re: Update on git.php.net incident

2021-04-07 Thread Jan Ehrhardt
Nikita Popov in php.internals (Tue, 6 Apr 2021 20:28:03 +0200): >Something I was not aware of at the time is that git.php.net >(intentionally) supported pushing changes not only via SSH (using the >gitolite infrastructure and public key cryptography), but also via HTTPS. >The latter did not use

[PHP-DEV] Main.php.net redirection error

2021-04-07 Thread Mail
main.php.net ( formerly master.php.net ) redirects me to php.net . Is this correct behavior?

[PHP-DEV] Re: timelib inefficiency

2021-04-07 Thread Dmitry Stogov
Hi Derick, I saw you have landed the recent updates of timelib to PHP master. There are few ongoing improvements: https://github.com/derickr/timelib/pull/103 - an obvious code motion, that avoid useless "year" calculation https://github.com/derickr/timelib/pull/104 - an adoption of my old idea,

[PHP-DEV] Empower Callables with Function Signature Hints

2021-04-07 Thread Hamza Ahmad
Hello Internals, I want to request making possible to catch functions with wrong signature when passed as callable. In other words, when a function or a method is passed as callable value, PHP will first confirm whether the function is of the write callable type that the function being executed

Re: [PHP-DEV] Re: [RFC] Autoloader Classmap

2021-04-07 Thread Jordi Boggiano
Hi Mark, On 06/04/2021 00:05, Mark Randall wrote: * I expect 99.% of users will never know it exists, and it will instead just be an option for tools like composer that will provide a small transparent boost. I wrote this as feedback in your early round (I don't think you answered),