Gert de Pagter is a software engineer at TactiPlan. His software engineering interests include testing and code quality.
Something I’ve been hearing myself says in every project that I have installed Psl in, is “Just use Psl for that”. And while some bits and bobs like array_find are getting into PHP 8.
Jul 23, 2024
We have been able to natively type parameters of methods and functions in PHP for quite some time. In basically any version of PHP you should be running we can do something like the following:
Jul 17, 2024
Youre on holiday, and suddenly you cant push or pull your github or gitlab repos, find out why that could be, and how to fix it.
Jul 9, 2024
declare(strict_types=1) makes your code more strict, but what does it actually do?
Jul 4, 2024
Learn how to integrate PHPStan, a powerful static analysis tool, into your PHP projects to enhance code quality and reduce errors, in a legacy project.
Jun 27, 2024
Learn how to back up files (and set them back) with a simple bash function, and do so right from the CLI
Jul 3, 2024
Get a rough idea of how many rows your table has, without using count, and doing a full table scan.
Jul 3, 2024
Set a step to allow failure or even a single part of the script
Jun 20, 2024
Use 'includes', 'find' or 'some' to check if an array contains an element
Jun 20, 2024
Use splice, toSpliced or filter to remove elements from an array.
Jun 20, 2024