I probably either had the work-around in more places than it was needed or their include-tracking changed over the years to no longer track includes that were done by includes
I removed it earlier because it was broken (as should be expected for a work-around that uses reflection to edit some internal blacklist) and I thought it wasn't a problem to remove it because it worked for the other test class without the work-around
@Tiffany It is in a class. It's part of a large and complicated project, though, and as the other 3v4l showed: I have not yet been able to reproduce it
That's what I meant: the operator is meant for such chains, and if the entire MDN article doesn't use anything better than chaining, there's probably no better terminology
On a completely different matter: is there a good way to check if php itself is treating something differently from older versions when include is involved?
Since I have done nothing too special, I expected the combination of the error and phpunit would give me good google results, but the only php-unit related results I'm getting are old (fixed or won't fix) issues which do not apply to my situation.
I installed phpunit using composer on Windows, but whenever I run phpunit I get a "strict_types must be first statement" error. Does anybody have an idea on in what direction to look in order to fix this?
I won't pretend I've never used pirated software (quite the contrary), but the mindset that involves you must pirate software is really rather tiresome (and a good one?)
@MisterMiyagi We're talking 500+ upvotes (on the one answer) here and 12 answers with a positive score. My guess would be that it would take longer for it to correct itself than for python 4 to be released
@Aran-Fey Yep, the solution was exactly that adding parentheses to a print. I'm going to keep it as is for now because multiple people agreed in the comments on not changing it, and I said that I wouldn't change things as long as that remained the unanimous sentiment in the comments (excluding me, obviously) and I would like to stick with that. But it's good to know what to do in the future.
@MisterMiyagi it's a bit of an open-ended question, with a ton of answers that suggest different approaches to the problem. There is no answer suggesting this approach that is python3 compatible and I'm pretty sure a new answer would be buried under far too many answers to ever climb highly.
Now here's the problem: I suggested that modification in the comments because I wasn't completely sure (and because I can't make an edit suggestion because of non-python rep) and the author of the question - who is a user with very high rep - responded in no uncertain terms: he wants to keep the answer as is, despite it not working for newcomers to the question
What is the policy you guys maintain on python2/3? I came across a highly upvoted answer that is python2 only (on a highly upvoted question) without any mention of this. I believe a simple modification could make the answer compatible with both python 2 and 3.