Questions tagged [phpstorm-2017.2]

The successor to PhpStorm 2017.1. It was released on July 19, 2017. Use this tag for version-specific issues relating to specifically to PhpStorm 2017.2

48 questions
5
votes
0 answers

PhpStorm over-indenting multi-line functions

I'm currently attempting to configure PhpStorm to produce fully-PSR-2-compliant code, however its formatter is tripping up on long lines which contain functions with multiple parameters. When I run the formatter, it converts this: return…
Benjamin Nolan
  • 1,170
  • 1
  • 10
  • 20
4
votes
1 answer

PhpStorm auto-completing HTML attributes with {braces} instead of "quotation marks"

Problem I've recently upgraded to the latest PhpStorm (or what was the latest recently.) PhpStorm 2017.2.4 Build #PS-172.4155.41, built on September 15, 2017 Since doing this, any time I type a HTML tag with an attribute, such as
Alec
  • 1,986
  • 4
  • 23
  • 47
2
votes
1 answer

What do asterisks in properties' names mean in the debugger's view of PhpStorm?

I have an issue with my code and when I'm comparing the last working reversion with the current one, I see among other things this difference in the PhpStorm's debugging output: working version object =…
automatix
  • 14,018
  • 26
  • 105
  • 230
2
votes
0 answers

PhpStorm freezes on start

I use PhpStorm 2017.2 on Linux and have very often freeze on project load with Project A. My other Project B always works fine, it never freezes. How can I find the problem for that freezes while loading Project A? There are some differences between…
EugenA
  • 323
  • 3
  • 14
2
votes
2 answers

Trouble installing PHP Code Sniffer

I'm attempting to install PHP Code Sniffer for PhpStorm, but have been unable to get it to work. I've been following the steps here: https://confluence.jetbrains.com/display/PhpStorm/PHP+Code+Sniffer+in+PhpStorm I added PHP Code Sniffer as a…
Titan9251
  • 35
  • 1
  • 6
1
vote
1 answer

How to remove PhpStorm auto added text on the codes

Does anyone knows how to remove the word "url" & "view" which is automatically added on the PHP storm IDE? Check below image I have marked in red:
Jareer
  • 242
  • 5
  • 24
1
vote
1 answer

Xdebug not stopping on breakpoint on MacOS High Sierra although is correctly installed

My development environment is: - MacOs High Sierra - PhpStorm - PHP 5.6 - Apache 2.4 - Xdebug 2.5.5 php config file for…
1
vote
2 answers

PhpStorm not typehinting class method return types in trait

Suppose i have a set of classes class A { use Dummy; function getB() : B { ... } } class B { function foo() { ... } } trait Dummy { function works() { if ($this instanceof A) $this -> getB() -> foo(); …
1
vote
1 answer

How to keep annotations on the same line when formatting PHP code

I have some custom annotations which should go exactly before a variable value $var = /* @text */'Some translatable text'; After formatting it becomes $var = /* @text */ 'Some translatable text'; How to disable inserting new lines after the…
ymakux
  • 3,415
  • 1
  • 34
  • 43
1
vote
1 answer

PhpStorm 'Find in Path' doesn't search everywhere

I'm using PhpStorm 2017.2.4 on Win 8.1. I'm trying to search for a string within every file in the project. For that I've opened 'Find in Path', set the File mask to "*", selected the option "Recursively" and began typing. It seems that the tool is…
Howie
  • 2,760
  • 6
  • 32
  • 60
1
vote
0 answers

Maximum number of Parameter Hints in IntelliJ/PhpStorm

Is it possible to change the maximum number of Parameters Hints in IntelliJ? For example: After 25 Parameter hints I get an inspection. Is there any configuration to increase the number?
RobSky
  • 325
  • 2
  • 6
1
vote
1 answer

Debug *.tpl files in PhpStorm

I am working with PhpStorm IDE. I have configured xdebug and I can debug php files in my IDE and it works fine. The problem is that I want to debug .tpl files too. I can debug .tpl files in NetBeans IDE! But PhpStorm does not support Smarty…
Meysam Valueian
  • 661
  • 1
  • 5
  • 21
1
vote
1 answer

Minify javascript with Uglify and PhpStorm don't work

I use latest PhpStorm 2017.2.3 and latest uglify.js. In my Toolsettings id do this: Than i add a testfile (test.js) in the module dir and take some code inside: function test () { var messsage = 'hello world'; alert(messsage); } The uglify result…
S.Chrobak
  • 105
  • 1
  • 9
1
vote
2 answers

PHPStorm and ES6 arrow functions inside vue template tag

I'm using PHPStorm 2017.2 and today I faced with some trouble. Is there any way to use arrow functions within vue attributes inside template? Now, i'm getting "expression expected" error highlighted by PHPStorm, when trying to write something…
1
vote
1 answer

Disable import of classes for PHPDoc

One thing I love about PhpStorm is the easy import of classes (adding the use statement for you). However, the annoyance with this is when you don't actually want it to import the class. For example, when I'm documenting a method's return value as…
Devon Bessemer
  • 34,461
  • 9
  • 69
  • 95
1
2 3 4