Gert de Pagter Profile
Gert de Pagter

@BackEndTea

Followers
573
Following
5K
Media
79
Statuses
2K

PHP Developer | I write a weekly blog about PHP development

Joined November 2017
Don't wanna be here? Send us removal request.
@BackEndTea
Gert de Pagter
1 year
#MySQL 9.0 is out: Being able to run javascript in MySQL is gonna be a game changer for sure. #MySQL9.
0
0
3
@BackEndTea
Gert de Pagter
1 year
Ever wondered what `declare(strict_types=1)` does in #PHP ?.
Tweet card summary image
backendtea.com
declare(strict_types=1) makes your code more strict, but what does it actually do?
0
0
1
@BackEndTea
Gert de Pagter
1 year
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:
1
0
0
@BackEndTea
Gert de Pagter
1 year
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!.
Tweet card summary image
backendtea.com
Use the Randomizer class to generate a random string, based on an input string.
0
0
2
@BackEndTea
Gert de Pagter
1 year
RT @BackEndTea: Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit #PHP….
Tweet card summary image
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
0
@BackEndTea
Gert de Pagter
1 year
Test multiple scenarios quickly, and reduce code duplication with data providers in #PHPUnit #PHP #unittest.
Tweet card summary image
backendtea.com
Learn how to use data providers in PHPUnit, to test a lot of scenarios and reduce code duplication
0
1
1
@BackEndTea
Gert de Pagter
2 years
RT @OndrejMirtes: Just-released @phpstan 1.10.12 includes support for object shapes! 🎉
Tweet media one
0
10
0
@BackEndTea
Gert de Pagter
2 years
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
0
0
@BackEndTea
Gert de Pagter
3 years
RT @davert: The #frontend thing I learned today. If you handle onclick event in #javascript and you want to preventDefault or stopPropagat….
0
4
0
@BackEndTea
Gert de Pagter
3 years
Unit test shouldn't use the filesystem. Yet you use an autoloader which includes file from the filesystem. curious. .
4
0
1
@BackEndTea
Gert de Pagter
3 years
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.
0
1
13
@BackEndTea
Gert de Pagter
3 years
I feel that one of the advantages of unit testing no one talks about is that good code === testable code.
1
2
9
@BackEndTea
Gert de Pagter
3 years
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
@BackEndTea
Gert de Pagter
3 years
When the message of the JS error you get is "[object Object]", you know its time to stop for the day.
0
0
0