Fixes & guides / A clearer way forward
Find the cause. Fix the problem.
Reproducible fixes for Composer, PHP, Laravel and Symfony problems, and tested workflows for keeping legacy code healthy. Every guide shows the error, the cause and the fix.
14 guides to explore
Allowed memory size exhausted
What PHP's memory_limit fatal error means, how to tell a real leak from a big job, and fixes for the usual causes: loading whole tables, unbounded arrays, Composer and recursion.
Composer dependency conflicts
A step-by-step way to read Composer's conflict output, find the package that is blocking you, and fix it without --ignore-platform-reqs or deleting the lock file.
composer install vs update
composer install reproduces composer.lock; composer update rewrites it. Here is what each command does, when to use which, and a safe production deploy routine.
Composer uses the wrong PHP version
Composer says "your php version (8.1.x) does not satisfy that requirement" when your server runs 8.3? The cause is usually the CLI binary, config.platform.php, or platform_check.php.
Duplicate webhooks in PHP
Webhook providers retry, so the same event can arrive twice. Verify the signature, record the event ID with a unique key, answer fast and process in a queue: a pattern that works in plain PHP, Laravel and Symfony.
Eloquent N+1 queries
How to spot N+1 queries in Laravel, fix them with eager loading, withCount() and constrained loads, and make Laravel throw an exception the next time one slips in.
Headers already sent
The warning names the file and line that produced output. Here is how to read it, the five usual culprits (BOM, whitespace, echo, warnings, closing tags) and fixes that do not just hide it.
Laravel queue jobs not running
Jobs dispatched but never processed, stuck in the jobs table, or running old code? Work through the connection, the queue name, the worker, failed jobs and deploy restarts.
PHP array to JSON
Why json_encode() sometimes gives you an object instead of a list, how to keep floats and slashes intact, and how to catch the silent false that malformed UTF-8 returns.
PHPStan baseline for legacy code
Generate a PHPStan baseline, stop new errors from getting in, then raise the level step by step. A tested routine for old PHP codebases.
PSR-4 autoloading
How PSR-4 maps namespaces to folders, how to configure it in composer.json, and why "Class not found" happens: case, typos, a stale autoloader or a namespace that does not match the path.
Serialized data broken after search-replace
Changing a domain name with SQL REPLACE() or sed corrupts PHP serialized strings because their byte lengths no longer match. Here is how to spot it and repair it safely.
Upgrade PHP with Rector
Upgrade a PHP application one version at a time: pin the baseline, let Rector rewrite syntax, let PHPStan find what Rector cannot, and prove it with tests before you switch runtimes.
Writing a talk proposal
What reviewers look for in a call-for-papers submission: a specific title, an abstract for attendees, notes for the committee, and a talk-sized idea. With a worked example and a checklist.