wmde / Diff

䷂ Library for diffing, patching and representing differences between objects
BSD 3-Clause "New" or "Revised" License
200 stars 15 forks source link

fix deprecation warnings #137

Open klkvsk opened 9 months ago

klkvsk commented 9 months ago

Some analyzers (e.g. Symfony DebugClassLoader) advise to add @return annotation along with #[ReturnTypeWillChange]:

"User Deprecated: Method "ArrayObject::unserialize()" might add "void" as a native return type declaration in the future. Do the same in child class "Diff\DiffOp\Diff\Diff" now to avoid errors or add an explicit @return annotation to suppress this message."