PHP Developer | I write a weekly blog about PHP development

Joined November 2017
#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
3
153
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-…
1
189
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-rand…
2
114
Just-released @phpstan 1.10.12 includes support for object shapes! 🎉
1
10
1
68
4,982
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
1
295
Gert de Pagter retweeted
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
4
4
21
1,751
Unit test shouldn't use the filesystem. Yet you use an autoloader which includes file from the filesystem. curious...
4
1
405
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
1
1
12
1,133
I feel that one of the advantages of unit testing no one talks about is that good code === testable code.
1
2
8
1,563
Anyone have some guides/blogs on converting an app without a framework to #Symfony? Its not flat php files, but a kinda homebrew framework
4
1
2
794
When the message of the JS error you get is "[object Object]", you know its time to stop for the day.