

JetBrains PhpStorm 2019 for Linux Overview It is full offline installer standalone setup of JetBrains PhpStorm 2019. If the high rate of false positives bothers you, you can deactivate the feature or dial it down, so it will only look at protected/private methods for instance.Download JetBrains PhpStorm 2019 for Linux Latest Version. idea/misc.xml in your project to make sure it's ignored every time. When you do this PhpStorm will add an entry to the file. You can also run the inspection once on the whole project and then mark your controllers as entry points, which will automatically mark those classes as (potentially) used code. via bin/console cache:clear (which clears the old cache and warms up the new one) should help most of them, but definitely not always and not with controllers. In Symfony projects building the cache, e.g. when the Service Container did not pick up the class it might not be recognized as used, yet. Potentially this can happen with other classes, e.g.

The unused code inspection will not recognize this code being called since PhpStorm can not properly inspect how controllers are called in Symfony's HttpKernel::handleRaw(). Return $this->render('contact/', [Īt the moment, the class and its action are marked as unused in the controller, what should I do? * \Symfony\Component\HttpFoundation\Response Some Controller class ContactController extends Controller () C:\OpenServer\OSPanel\domains\myblog.loc\src\Controller\IndexController.php:0 I read on that this is possibly a bug, the new version of the IDE does not work correctly with annotations C:\OpenServer\OSPanel\modules\php\PHP_7.2\php.exe -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9090 -dxdebug.remote_host=127.0.0.1 C:\OpenServer\OSPanel\domains\myblog.loc\src\Controller\IndexController.phpįatal error: Class 'Symfony\Bundle\FrameworkBundle\Controller\Controller' not found in C:\OpenServer\OSPanel\domains\myblog.loc\src\Controller\IndexController.php on line 18Ġ.0679 382496 1. In the Symfony controller, methods are highlighted as not being used.
