Gert de Pagter(@BackEndTea) 's Twitter Profileg
Gert de Pagter

@BackEndTea

PHP Developer | I write a weekly blog about PHP development

ID:933689811734614021

linkhttps://backendtea.com calendar_today23-11-2017 13:32:53

2,2K Tweets

558 Followers

506 Following

Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

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

account_circle
davert ๐Ÿ‡บ๐Ÿ‡ฆ(@davert) 's Twitter Profile Photo

The thing I learned today.

If you handle onclick event in 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

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
account_circle
Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

Unit test shouldn't use the filesystem.

Yet you use an autoloader which includes file from the filesystem. curious...

account_circle
Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

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

account_circle
Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

Anyone have some guides/blogs on converting an app without a framework to ? Its not flat php files, but a kinda homebrew framework

account_circle
Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

What is the current (non deprecated) way in DBAL to check if the connection is still working, and reset it if it is not?

All i can find are 8 year old answers, that refer to methods that are gone or deprecated ๐Ÿ˜…

account_circle
Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

Would be cool if in symfony you could add a #[Cached] attribute to a method, and then it will automagically cache the method calls, based on the parameters

account_circle
Gert de Pagter(@BackEndTea) 's Twitter Profile Photo

Would you consider changing a return type on a final class from :string|bool to :string|false a BC break? Because it could can break peoples static analysis

account_circle