Welcome! Log In Create A New Profile

Advanced

[PHP-DEV] DateTime::__set_state() argument changing?

Posted by Antonio Carlos Ribeiro 
Antonio Carlos Ribeiro
[PHP-DEV] DateTime::__set_state() argument changing?
March 09, 2018 05:20PM
Due to a recent change in the Carbon PHP library, I'm now getting this
error, only when testing on PHP Nightly:


*Declaration of Carbon\Carbon::__set_state(array $state) should be
compatible with DateTime::__set_state($array)*

Is the argument type hinting being removed on PHP 7.3?

You can see them all passing on Travis, except for Nightly:

https://travis-ci.org/antonioribeiro/ia-collection

Antonio Carlos Ribeiro
acr@antoniocarlosribeiro.com

(+55) 21-9-8088-2233 (celular TIM)
(+55) 21-2556-3164 (fixo residencial)

skype: antoniocarlosribeiro

_______________

*I must say I find television very educational. The minute somebody turns
it on, I go to the library and read a good book.** (*

*Devo dizer que acho televisão muito educativo. Quando alguém a liga, vou à
biblioteca e leio um bom livro.) (Groucho Marx)*
Gabriel Caruso
Re: [PHP-DEV] DateTime::__set_state() argument changing?
March 09, 2018 05:40PM
Hello Antonio.

Please see https://github.com/php/php-src/pull/3038 for more information.
Also, use the https://bugs.php.net if you judge this is a bug.

Thanks

Em sex, 9 de mar de 2018 às 13:15, Antonio Carlos Ribeiro <
[email protected]> escreveu:

> Due to a recent change in the Carbon PHP library, I'm now getting this
> error, only when testing on PHP Nightly:
>
>
> *Declaration of Carbon\Carbon::__set_state(array $state) should be
> compatible with DateTime::__set_state($array)*
>
> Is the argument type hinting being removed on PHP 7.3?
>
> You can see them all passing on Travis, except for Nightly:
>
> https://travis-ci.org/antonioribeiro/ia-collection
>
> Antonio Carlos Ribeiro
> acr@antoniocarlosribeiro.com
>
> (+55) 21-9-8088-2233 (celular TIM)
> (+55) 21-2556-3164 <+55%2021%202556-3164> (fixo residencial)
>
> skype: antoniocarlosribeiro
>
> _______________
>
> *I must say I find television very educational. The minute somebody turns
> it on, I go to the library and read a good book.** (*
>
> *Devo dizer que acho televisão muito educativo. Quando alguém a liga, vou à
> biblioteca e leio um bom livro.) (Groucho Marx)*
>
--
Gabriel Caruso
Antonio Carlos Ribeiro
Re: [PHP-DEV] DateTime::__set_state() argument changing?
March 10, 2018 04:40PM
I get it now, Gabriel, thanks for the clarification.

Cheers!


Antonio Carlos Ribeiro
acr@antoniocarlosribeiro.com

(+55) 21-9-8088-2233 (celular TIM)
(+55) 21-2556-3164 (fixo residencial)

skype: antoniocarlosribeiro

_______________

*I must say I find television very educational. The minute somebody turns
it on, I go to the library and read a good book.** (*

*Devo dizer que acho televisão muito educativo. Quando alguém a liga, vou à
biblioteca e leio um bom livro.) (Groucho Marx)*


On Fri, Mar 9, 2018 at 1:31 PM, Gabriel Caruso <[email protected]>
wrote:

> Hello Antonio.
>
> Please see https://github.com/php/php-src/pull/3038 for more information.
> Also, use the https://bugs.php.net if you judge this is a bug.
>
> Thanks
>
> Em sex, 9 de mar de 2018 às 13:15, Antonio Carlos Ribeiro <
> [email protected]> escreveu:
>
>> Due to a recent change in the Carbon PHP library, I'm now getting this
>> error, only when testing on PHP Nightly:
>>
>>
>> *Declaration of Carbon\Carbon::__set_state(array $state) should be
>> compatible with DateTime::__set_state($array)*
>>
>> Is the argument type hinting being removed on PHP 7.3?
>>
>> You can see them all passing on Travis, except for Nightly:
>>
>> https://travis-ci.org/antonioribeiro/ia-collection
>>
>> Antonio Carlos Ribeiro
>> acr@antoniocarlosribeiro.com
>>
>> (+55) 21-9-8088-2233 (celular TIM)
>> (+55) 21-2556-3164 <+55%2021%202556-3164> (fixo residencial)
>>
>> skype: antoniocarlosribeiro
>>
>> _______________
>>
>> *I must say I find television very educational. The minute somebody turns
>> it on, I go to the library and read a good book.** (*
>>
>> *Devo dizer que acho televisão muito educativo. Quando alguém a liga, vou
>> à
>> biblioteca e leio um bom livro.) (Groucho Marx)*
>>
> --
> Gabriel Caruso
>
Sorry, only registered users may post in this forum.

Click here to login