Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-24 Thread Sebastian Bergmann
Am 23.09.2021 um 18:52 schrieb Nikita Popov: I believe that this continues to be the default behavior of PHPUnit for example. This means that in practice, deprecations do break code, even though they are intended not to. That is correct: by default, PHPUnit converts PHP deprecations, errors, n

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-24 Thread Rowan Tommins
On 24/09/2021 15:11, Larry Garfield wrote: Might one possible way forward be to work with the PHPUnit folks to make deprecations not a test-breaking issue, but report them side-channel somehow? (Like "risky" tests now pass, but have an extra note on them.) That seems like it would resolve the

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-24 Thread Larry Garfield
On Thu, Sep 23, 2021, at 11:52 AM, Nikita Popov wrote: > I believe the changes in PHP 8.1 with the highest migration burden for > open-source libraries are the additional of tentative return types (aka > "put #[ReturnTypeWillChange] everywhere") and deprecation of null arguments > to internal func