Named Arguments in PHP 8 Practice
Named arguments let you skip optional parameters and document the call site. htmlspecialchars($s, double_encode: false) reads better than five positional true/false arguments.They …
Read article →Notes on JavaScript, PHP, WordPress, design, performance, and the practical side of shipping better digital products.
Topics covered
The blog is designed to support both technical readers and clients who want clearer language around scope, quality, and implementation decisions.
Named arguments let you skip optional parameters and document the call site. htmlspecialchars($s, double_encode: false) reads better than five positional true/false arguments.They …
Read article →PHP 8.1 introduced strtoupper(...) — a syntactically clean way to reference a function as a callable. Same for methods: $user->email(...).It replaces the older string-or-array c…
Read article →Composer 2 rewrote the solver. Typical installs are 50–80% faster and use a fraction of the memory of Composer 1. Lock files generated by Composer…
Read article →Level 9 of PHPStan flags the use of mixed — every variable must have a known type. It is a large jump from level 8…
Read article →Pest wraps PHPUnit with an expressive, function-based syntax. test('it sums numbers', fn() => expect(1 + 1)->toBe(2)); reads like documentation.Existing PHPUnit tests continu…
Read article →