I missed the fact that "AI" autocomplete used instantiation method again in first assertion and removed all preconditions. Then #phpunit saw a bunch of empty iterators, decided to mark test as risky and skip the rest of it, but also marked it passing due to that first assertion.
Don't remember last time I stumbled on bviously wrong code with passing test coverage.
Remote
shudder 
@shudder@phpc.social
21 Followers
24 Following
15 Posts
Joined May 27, 2022
Open post
Replying to
@bobmagicii@phpc.social @stevegrunwell@phpc.social I bet people landed in jail for less obvious substance abuse than this
1
0
0
0
Open post
Replying to
@brendt You forgot to mention that the way polyfill packages are autoloaded might also crash your application in production, because dev (and CI) setup could lie that your environment is able to handle missing functions, while it's only due to presence of certain dev dependencies.
That said, installing PhpCsFixer as dev dependency is the recommended way, and alternate one in case of conflicts, which when it comes to polyfills are hidden by the package itself.
1
0
0
0
Open post
Replying to
1
0
0
0
Open post
Replying to
@Windy@phpc.social What game? Probably didn't use your manual, because I only rented dedicated server to run Quake 3 Arena for a month, and it's not really a co-op game (teamplay tho). Now, with the fast internet co-op games are booming - so many interesting ideas.
1
1
0
0
Open post
Replying to
@Windy@phpc.social Here: https://phpc.social/@shudder/113054872044485998
Also reminded me I haven't posted part 3 yet
1
3
0
0
Open post
My hamster-wheel power plant idea is dead in the water. These motherfuckers are useless. 0.5 watts output? Come on! Ughh, I guess no one wants to work anymore 😕
0
1
0
0
Open post
Hey @PHPCSFixer@phpc.social - Tokens::updateSizeToZero() is not resetting $foundTokensKinds array. The values will double for any Fixers that use code rewrite/re-tokenize feature (like align option in binary_operator_spaces).
A one line fix - much easier than learning all your issue/PR ceremonies, and I don't care that much
#php #phpcsfixer
0
0
0
0
Open post
Replying to
@Crell@phpc.social Played something similar back when I lived in the dorms. It expanded from movies to practically anything someone might like. Usually started when uncalled-for criticism was met with "And what's your favorite...?" followed by collective destruction brainstorming. A playful way of telling someone they shouldn't dunk on someone else's interests. Dumbing down the plot was one of the main tricks when it comes to movies. Fun times.
0
0
0
0
Open post
Replying to
@Girgias@phpc.social PHP Rant #1 recording has no sound or is it something on my side?
0
1
0
0
Open post
Replying to
@Girgias@phpc.social Huh. Sound loaded after I played different video and went back to yours. nvm then
0
0
0
0
Open post
Replying to
@theshaunwalker@phpc.social It's usually happens when accounting at new workplace restarts payroll deductions at tax-free bracket
0
0
0
0
Open post
Replying to on scottodon.com
@skc@scottodon.com @ramsey@phpc.social They didn't have enough video clips to back these claims. Now they do. There's even a suspicion that far-left tankies are secretly backed by the opposite side (they still stand behind their "Kamala wouldn't be much better" or "Ukraine should give up").
0
0
0
0