Show newer

GitHub actions question: How does one access the GITHUB_* env vars from inside an file inside a docker file invoked by "runs: image: 'Dockerfile'" in the action.yml?

kboyd boosted

Do not burn the things down that you disagree with.

Instead life UP the things that you DO agree with. Let others use their voice to lift them up as well so that these things are seen by everyone.

Use your voice for good, not bad.

kboyd boosted

Heh, glitch is fun. I made this little tool pretty quickly.

(Testing out a new Beehive RSS feed ...)

kboyd boosted

Anyone on using League\Container? I find it odd that `->add(MyInterface::class, MyService::class)` doesn't pull the concretion from the container; to get the behaviour I want, I need to use something like `$container->add(MyInterface::class, function () use ($container) { return $container->get(MyService::class); })`.

Anyone else find that odd?

Sometimes "Quality Assurance" means shovelling around inside a puddle to try and unclog a drain.

Someone on IRC helped me yesterday. Apparently when JSON-encoding arrays in PHP, if you need an empty array to be encoded as an empty associative array/hash/dictionary, you can use `(object)[]`.

Ah, I remembered one of the places where XML hurt me.

RSS and Atom feeds.

You've practically gotta fuzz the outputs to make sure things don't get absolutely buggered by unexpected characters. Maybe there's an efficient and reliable way to do it, but I got really sick and tired of random breakages.

Oh, wait, technically the Hives are the integrations and the Bees are the individual configurations you set up. And then Chains are what knits the Bees into workflows. Or something. :)

Show thread
Show older
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.