-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rename file functions by adding a suffix #338
Conversation
I'm not sure what's going on here, running the generator on my branch outputs no changes. Could it be because I'm running on PHP 8.1 and the action is 8.0? I was surprised with the |
If think you just need to update your documentation folder. You are missing the function 'passthru' whose documentation was recently changed. |
This looks good to me. I will try to get @moufmouf to see this, to make sure this doesn't break some compose magic. |
cad1949
to
44169f0
Compare
You are right, I just did and pushed and updated version. If you are checking out this branch make sure to dump the autoloader again (I'd recommend deleting the composer folder and running |
Codecov Report
@@ Coverage Diff @@
## master #338 +/- ##
=========================================
Coverage 49.43% 49.43%
Complexity 313 313
=========================================
Files 16 16
Lines 791 791
=========================================
Hits 391 391
Misses 400 400
Continue to review full report at Codecov.
|
Woo, I catched up a looooong series of issues. Thanks a lot @j3j5 for the PR and congrats for understanding the root cause of the issue! The issue There is just one thing that frightens me a bit. Anyone relying on Safe but not using the autoloader (but instead including files manually) will have breaking changes. I absolutely don't know if some people are doing this in the wild or not. I mean, I would never do that myself, but you can see some crazy code out there (maybe someone trying to overoptimize things could try to manually import files?) Or am I overthinking this? #333 looks kind of ok to me actually. What are the particular issues with #333 ? |
It is a risk indeed, if you decide to go with this solution you may want to make a major release just to make sure, although I doubt many people do manually import the files, it is a possibility and we'll be breaking their workflow with this solution (mandatory xkcd). As for #333, latest changes on On the other hand, I'm writing this and thinking that the solution may actually be easier and less disruptive. What if we just rename the file for As I said on the other PR, at the end of the day y'all are the maintainers of the package so the solution is up to you. I'm happy just getting rid of the error on my packages 😛 |
Closing this since #333 was merged instead |
@j3j5 Do you think you can solve the conflicts? Once it is done, i will think some people to test this on a real project and then I will create an alpha |
Closing in favor of #350 |
As mentioned on #333 , this is different approach at fixing #253.
I believe this approach is better, cleaner and more scalable since it makes it impossible to confuse the autoloader with the filename and its PSR4 file path.
I've tested it on https://github.com/nepda/phpstan-larastan-bug and it works perfectly.
Let me know your thoughts.