Gert de Pagter
@BackEndTea
PHP Developer | I write a weekly blog about PHP development
Properly typing your arrays can improve your code a lot, read about it here: backendtea.com/post/php-typed… #PHP
#MySQL 9.0 is out: dev.mysql.com/doc/relnotes/m… Being able to run javascript in MySQL is gonna be a game changer for sure #MySQL9
Ever wondered what `declare(strict_types=1)` does in #PHP ? backendtea.com/post/php-decla…
Sometimes adding #PHPStan to a project can be a big challenge. In this blog post you'll learn how to add PHPStan to a #legacy #PHP project: backendtea.com/post/phpstan-l…
You really should analyze your #PHPUnit tests with #PHPStan backendtea.com/post/phpstan-a…
Learn how to generate a random string in #PHP. Since PHP 8.2 there are more options to generate a secure random string. This post will explain how you can do so! backendtea.com/post/php-rando…
Mastering PHPUnit: Using data providers backendtea.com/post/phpunit-d… Discussions: discu.eu/q/https://back… #php #programming by @BackEndTea
Learn the basics of using mocks and stubs in #PHPUnit: backendtea.com/post/phpunit-m… #PHP #unittest
Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit backendtea.com/post/phpunit-d… #PHP #unittest
backendtea.com/post/phpunit-y… This week i wrote about writing your first PHPUnit tests. #PHP #PHPUnit #unittests
I'm writing a series on #PHPUnit this week is a basic introduction: backendtea.com/post/phpunit-i…
Just-released @phpstan 1.10.12 includes support for object shapes! 🎉
This form is probably matching phone numbers with regex, but the only error i'm seeing is that it only allows numbers. I'm only entering numbers. FFS just tell me what the expected input is
The #frontend thing I learned today. If you handle onclick event in #javascript and you want to preventDefault or stopPropagation, please ensure that you don't use 'await' in your handler! I spent about few hours trying to figure this out
Unit test shouldn't use the filesystem. Yet you use an autoloader which includes file from the filesystem. curious...
I swear the JS eco system is so broken. I just want to have a small TS project with unit tests. And i'm already an hour in just getting set up. All this tooling that is incompatible with eachother
I feel that one of the advantages of unit testing no one talks about is that good code === testable code.
Anyone have some guides/blogs on converting an app without a framework to #Symfony? Its not flat php files, but a kinda homebrew framework
When the message of the JS error you get is "[object Object]", you know its time to stop for the day.