My profiling helper was the thing running out of memory
A two-year overview page died at 1 GB with Clockwork switched on. The memory wasn’t going to the page. It was going to a helper I wrote, and to one line I’d added as a hotfix a year earlier.
A two-year overview page died at 1 GB with Clockwork switched on. The memory wasn’t going to the page. It was going to a helper I wrote, and to one line I’d added as a hotfix a year earlier.
Our Functional suite had been failing for months and CI never ran it. Getting it green took a rollback that didn’t roll back, a fix that fixed nothing, and a correct test I rewrote by mistake.
A Rector config set up for a one-time PHP upgrade had quietly become maintenance debt: rules that can’t match modern code, and custom rules nothing references. Here’s the cleanup, and why dead tooling config is sneakier than dead application code.
A project search for ‘Testby a-12’ returned 383 hits. The discriminating token — the one that should have narrowed the search to a handful of rows — was being deleted before it ever reached the query. Here’s the rule that did it, and why it could only ever broaden results.
A list page in our admin was hitting PHP’s max_execution_time and crashing. The fix wasn’t one big rewrite — it was ten small ones, found by spending an afternoon making Clockwork actually show us where the time went.
A 138-file permissions refactor we’d worked on since June merged at 12:28. By 12:57 it was reverted. The bug was small. The revert was the right call. The version we re-shipped a week later was the same diff plus one fix — and a different way of proving it was safe before the merge button.
Rector ships with version ‘sets’ that bundle well over a hundred rules to take your code from PHP X to PHP Y. We didn’t use any of them. Here’s the 20-rule cherry-pick we used to upgrade a multi-repo PHP 7.3 codebase to 8.4 — and why hand-picking turned out to be the smaller risk.