Bug report
In PHP8.1 fputcsv and SplFileObject::fputcsv gain a 6th parameter to allow modifying the return carriage. PHPStan still report it as a bug.
Code snippet that reproduces the problem
Snippet reproducing the bug
Expected output
PHPStan should not raise any issue in PHP8.1+
Did PHPStan help you today? Did it make you happy in any way?
PHPStan has always helped me.