Re: [PHP-DEV] Traits "implements" support

2020-11-30 Thread Pierre R.
Le 30/11/2020 à 16:19, Nikita Popov a écrit : Common misconception: It's not possible to rename methods of traits, you can only create aliases. That said, there's still an issue in that you might resolve a conflict in favor of an identically named method that uses a different signature. Note

Re: [PHP-DEV] phar command

2020-11-30 Thread Bishop Bettini
On Mon, Nov 30, 2020 at 10:56 AM Nikita Popov wrote: > > The PHP build system currently produces a "phar" command. See > http://manpages.ubuntu.com/manpages/xenial/en/man1/phar7.0.1.html for a > man > page. > > Apart from changes to keep it working, the last time its implementation was > touched

Re: [PHP-DEV] phar command

2020-11-30 Thread Levi Morrison via internals
On Mon, Nov 30, 2020 at 8:59 AM Sebastian Bergmann wrote: > Am 30.11.2020 um 16:55 schrieb Nikita Popov: > > My understanding is that packaging libraries as phars is not exactly > > straightforward, and people use different tooling to achieve that. > > While I do not use this "phar" command to

Re: [PHP-DEV] Nightly builds

2020-11-30 Thread Michael Voříšek - ČVUT FEL
Thanks - via api - externally - it should be possible - https://dev.azure.com/phpazuredevops/PHP/_apis/pipelines/1/runs?orderBy=date%20desc=1000=6.0-preview.1 The only thing we could produce are Docker images Yes, building nightly Docker image is the intended usecase and I may help with it.

Re: [PHP-DEV] phar command

2020-11-30 Thread Sebastian Bergmann
Am 30.11.2020 um 16:55 schrieb Nikita Popov: My understanding is that packaging libraries as phars is not exactly straightforward, and people use different tooling to achieve that. While I do not use this "phar" command to package my software as PHARs, I use it every once in a while to look

[PHP-DEV] phar command

2020-11-30 Thread Nikita Popov
Hi, The PHP build system currently produces a "phar" command. See http://manpages.ubuntu.com/manpages/xenial/en/man1/phar7.0.1.html for a man page. Apart from changes to keep it working, the last time its implementation was touched was back in ... 2008. I'm wondering if anyone is using this

Re: [PHP-DEV] Traits "implements" support

2020-11-30 Thread Nikita Popov
On Thu, Nov 26, 2020 at 5:53 PM Pierre R. wrote: > Le 26/11/2020 à 17:50, David Rodrigues a écrit : > > Hello! > > > > Now with PHP 8, traits supports abstract functions that should be > > implemented by the class that uses this trait. > > > > So is it now possible that traits could have support

Re: [PHP-DEV] Method parameter promotion support

2020-11-30 Thread Nikita Popov
On Thu, Nov 26, 2020 at 5:31 PM David Rodrigues wrote: > Hello! > > It is just an idea to discuss. PHP 8 now supports parameter promotion via > constructor. Could this idea also work for common methods? > > public function setAge(private int $age) {} > === > private int $age; > public function

Re: [PHP-DEV] Strict switch

2020-11-30 Thread Nikita Popov
On Thu, Nov 26, 2020 at 5:39 PM David Rodrigues wrote: > Hello! > > With PHP 8 we have match(), that is a switch strict expression-like. But > strict is not strict, and it could cause confusion because switch() and > match() are pretty similar. > > I believe that this has already been discussed,

Re: [PHP-DEV] Nightly builds

2020-11-30 Thread Nikita Popov
On Sat, Nov 28, 2020 at 12:44 PM Michael Voříšek - ČVUT FEL < voris...@fel.cvut.cz> wrote: > Hi internals, > > currently, as far as I know, php does not have nightly builds. > > By nighly I means builds/releases that are tested to pass all CI tests. > This is not the case with master branch, as