-
Notifications
You must be signed in to change notification settings - Fork 447
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
Fix accepted types for fputcsv fields parameter #451
Fix accepted types for fputcsv fields parameter #451
Conversation
public function testPutCsvWithStringable(): void | ||
{ | ||
if (PHP_VERSION_ID < 80000) { | ||
$this->markTestSkipped('Test skipped under 8.0'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read "under 8.0" as "when running 8.0". Something like "before" or "on lower version than" would be nicer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a better message.
@@ -0,0 +1,17 @@ | |||
<?php declare(strict_types = 1); | |||
|
|||
class StringablePerson implements \Stringable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't put these test files in global namespace. Some namespace like "namespace FputcsvPhp8" would work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
@@ -0,0 +1,38 @@ | |||
<?php declare(strict_types=1); | |||
|
|||
class Person |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't put these test files in global namespace. Some namespace like "namespace FputcsvTest" would work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Thank you! |
Correctly fix type for
fputcsv
function parameter$fields
. Fix attempt made in #448