Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1 - Function fputcsv invoked with 6 parameters, 2-5 required. #6563

Closed
iweindesmedt opened this issue Feb 4, 2022 · 2 comments
Closed

Comments

@iweindesmedt
Copy link

Bug report

"The optional eol parameter has been added." in PHP 8.1.
PHPStan doesnt know this, as it reports an error both for the procedural fputcsv() and the OO SplFileObject::fputcsv().

https://www.php.net/manual/en/function.fputcsv.php
https://www.php.net/manual/en/splfileobject.fputcsv

Code snippet that reproduces the problem

https://phpstan.org/r/55cdc3c2-a532-4569-9074-9f4c15c0a9c7

@johnbillion
Copy link
Contributor

Duplicate of #6448

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants