filesystem icon indicating copy to clipboard operation
filesystem copied to clipboard

Fix php8.1 deprecation error

Open asika32764 opened this issue 2 years ago • 4 comments

asika32764 avatar Feb 04 '22 05:02 asika32764

The error was caused by https://github.com/WyriHaximus/reactphp-child-process-messenger/blob/master/src/ChildInterface.php#L11

Must change return type to mixed

asika32764 avatar Feb 04 '22 05:02 asika32764

This might not be invalid after all, does the error you mention at https://github.com/WyriHaximus/reactphp-child-process-messenger/pull/79#issue-839954256 disappear when you add this line?

WyriHaximus avatar Feb 06 '22 17:02 WyriHaximus

#[\ReturnTypeWillChange] won't work, must remove void from the interface return type.

asika32764 avatar Feb 24 '22 17:02 asika32764

#[\ReturnTypeWillChange] won't work, must remove void from the interface return type.

It is not there for the latest tagged version: https://github.com/WyriHaximus/reactphp-child-process-messenger/blob/4.0.2/src/ChildInterface.php#L16

WyriHaximus avatar Mar 03 '22 16:03 WyriHaximus

Close since the root library updated.

asika32764 avatar Apr 11 '23 05:04 asika32764