Maybe there's a way to do this same thing with array_* functions, but nothing came to mind.
I just came up with the most brutal hack to use array_reduce with short functions ... heh.
Since "add to the array" and "return the array" are two operations, I turned them into a single one by using a ternary:
fn ($carry, $item) =>
($carry[$item['category']] = $item)
It eventually came back online; after several further issues with exhausted memory, I finally figured out that `make -j4` was just too taxing for the system (Pi 3 Model B)
I found a way to set my ZSH_THEME differently in PHPStorm than in the terminal (because I run the IDE in light mode, like a monster, but the terminal in dark mode as intended)
if [[ -z "$ZSH_THEME" ]]; then
Then in PHPStorm, I can specify a ZSH_THEME environment key to set the theme I want.
Success! I finally got php8 + gd to compile on macOS. I had to `sudo port uninstall gd2`, otherwise I guess the libraries were getting entangled and it was confusing the build system.
Oof, the method for Strike 2 is itself a multi-strike. It has another Strike 1. But at least it's not tied to a specific implementation.
I want to unit test a method that is 18 lines long, and there's so much going on that I don't think I can ... at least not in the same repo it lives in.
Strike 1: Internal static array cache
Strike 2: Invocation of a static method to do some work
Strike 3: Hard-coded constant referencing *one* project that it is included from
For Cyber Monday, we’re offering PHP 8.0 for free! Go download it today! https://www.php.net/releases/8.0/en.php
I don't normally repost my twitter content here, due to my belief that repost-bots are actually a detriment to platform growth, but I thought I'd manually repost this one:
"Agreement doesn't lead to clicks. No clicks, no profit. Therefore, unless they find a way to break the feedback loop powering their profits, it is the function of a profit-based social network to wilfully - gleefully - tear itself apart."
Maybe "^7.2|^8.0" ... or will someone yell at me for that?