-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Deprecation of League\Csv\Reader::fetch #208
Comments
@JC5 yes indeed it is marked as deprecated because work has started on the next major release and Hope this answer your question as it is similar to #206 |
It does, apologies. I am used to deprecation after the new method has been presented. 😉 |
I came here for this exact reason. Shouldn't the method be deprecated once an alternative is available? |
@joshbrw Please refer to PHPdoc documentation |
@nyamsprod Surely these methods are going to be superceded by some other method? The PHPDoc documentation states |
there's a If at the start of the sentence :) |
Of course. But surely you're always going to need to |
yes and having a |
I guess it all depends on your view of what |
Nope. The definition of |
@nyamsprod static analyzers don't like it either and any ide.. if there is no alternative it's not nice to mark it as deprecated. |
@cdekok I don't think we're going to get our way with this one, but I whole-heartedly agree with you. |
Agree with @joshbrw. When I see a deprecated method, I always try to refactor the code. But in this case I'm unable to do that. By using
Of course, you are right that providing an alternative is not required. But So I'm puzzled now, because I want to read a CSV file, but I don't know how to do it properly (with Just my 5 cents. |
I appreciate the change, @nyamsprod ! |
At everyone, I had a discussion off record with other leaguers and I decided to make a patch release which will remove most of the |
Thanks @nyamsprod - appreciate it! |
version 8.2.1 is out with the fix |
Thanks, @nyamsprod! |
League\Csv\Reader::fetch
has been marked as deprecated as per the change log but it is still used as a main example in the "reading" section of the manual and there does not seem to be any indication this method is actually deprecated, nor what the alternative should be.The text was updated successfully, but these errors were encountered: