-
Notifications
You must be signed in to change notification settings - Fork 13
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
Refactoring file handling with minimum backward compatibility breaks #116
Conversation
… still not perfect
* | ||
* @return array|null | ||
*/ | ||
public function readLine($length = null): ?array; |
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.
We are forced to remove the readLine method because it's too much linked to CSV
@@ -13,7 +13,7 @@ | |||
/** | |||
* Wrapper around JSON files to read them in a stream | |||
*/ | |||
class JsonStreamFile implements FileStreamInterface, WritableFileInterface | |||
class JsonStreamFile implements FileStreamInterface |
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.
Maybe there is a mistake here
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.
Should have been replaced by WritableStructuredFileInterface
Not sure about this interface, but at some point, write method was not
compatible with this (wrong return type?)
Le mer. 22 avr. 2020 à 15:44, Vincent Chalnot <[email protected]> a
écrit :
… ***@***.**** commented on this pull request.
------------------------------
In Filesystem/JsonStreamFile.php
<#116 (comment)>
:
> @@ -13,7 +13,7 @@
/**
* Wrapper around JSON files to read them in a stream
*/
-class JsonStreamFile implements FileStreamInterface, WritableFileInterface
+class JsonStreamFile implements FileStreamInterface
Should have been replaced by WritableStructuredFileInterface
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARXHKOGQXGW23S5PD6EERTRN3YCZANCNFSM4MOFQDRA>
.
|
Too much changes between proposal and main branch => So moved to #160 |
Trying improve the mess in here but it's very difficult without breaking interfaces.