javaDeveloperKid

Results 64 comments of javaDeveloperKid

It's a very generic description and it is unlikely to be reproduced by anyone. It could be the server that was temporarily unhealthy or you connection could suffer. Go shopping...

This will trigger a PHP warning (notice in 7.4) and return "Array" string if parameter is an array. I understand developers should use this method only on validated requests, right?...

> In addition, if we talk about `HttpFoundation`, then we will never receive an array in the request. Actually we will. This is the case when sending a field multiple...

I think ParameterBag's helper methods like `getInt`, `getString`, `getBoolean` should not modify the returned parameter value but only change the type. If the type cannot be changed without changing the...

I also have problems with falsy unused packages. Let's say there are bundles that are not used in my code anywhere besides registering in `config/bundles.php`. I want to to tel...

Having the same issue (in my case with Gedmo). Cannot use a basic fixer `PhpCsFixer\Fixer\Import\NoUnusedImportsFixer` because of it. Problem does not exist when annotation is imported inside first level trait.

> But this will break stuff on the internet Will break my Internet surfing? Or you mean that if people started blocking these requests then Google would have less data...

This case cannot be autowired of course but this is not the problem I wanted to show. The problem is that this rector should create 2 separate properties.

I would just add some suffix to the variable name, let's say `$myServiceClass2`. Can't thing about any solution that wouldn't require manual property name change (Rector can't know how developer...

I will try to provide a code snippet.