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?
Hmm, I need to replace "php": "^7.2" in a composer.json ... so that it can support 7.2-8.0 ... suggestions?
Yay, make clean did work. But now I need to figure out how to enable openssl 😂
Wrote a quick blog post about it with a short demo of how it can be embedded into blog posts: https://whateverthing.com/blog/2020/11/22/php-sandbox/
TIL about https://phpsandbox.io - similar to a tool I started but never shipped, and it includes support for Composer dependencies.