Questions tagged [phpstorm-2018.1]

35 questions
3
votes
1 answer

Rename file in PhpStorm without refactoring?

Firstly, I have already read this question and using the Shift+F6 method is just a quicker way to bring up the standard refactor option. I am using PhpStorm 2018.1 Perhaps this is a bug in the latest version as I don't recall having issues with this…
Brett
  • 19,449
  • 54
  • 157
  • 290
2
votes
0 answers

PhpStorm autocompletes "null" to "null()". Can I modify autocomplete list?

Problem When I type null, and use any form of code completion such as Ctrl-Shift-Return for example, it chooses the top-most option from the auto-complete dropdown, but the top-most option is never the one I want. Example: Question Is it possible…
Alec
  • 1,986
  • 4
  • 23
  • 47
2
votes
0 answers

Telling PhpStorm where a class is located so it can use autocomplete

I'm using WordPress and using a plugin called Timber, which basically helps you to utilise the Twig templating engine in WordPress. Anyway, I am trying to do this in one of my files: Timber::render('welcome.twig'); PhpStorm is reporting that Timber…
Brett
  • 19,449
  • 54
  • 157
  • 290
2
votes
2 answers

How to ignore not changed files to "git commit" in PhpStorm

I have a new branch from dev, make some changes and want to commit and push, when i press commit there are all files of project, changed and identical, all... How can I exclude not changed files? (PhpStorm 2018.1, Ubuntu 16.04) git status shows…
Evgeny Gil
  • 317
  • 5
  • 17
2
votes
1 answer

Class PhpStorm_Codeception_ReportPrinter does not exist

I am attempting to run Codeception functional tests within PhpStorm and keep receiving an error that says a class is missing. I've scoured the internet and found nothing available for this problem except for one post…
Curtis Kelsey
  • 716
  • 8
  • 32
1
vote
0 answers

Error in Core language used by PhpStorm for exception and others

I have an error when define PHP version in 5.6 on settings. PhpStorm, in 2018.1.6 version, use Core with PHP 7 and logically use PHP 7 implementations. By example for extends Exception, PhpStorm create an constructor with a third parameter has an…
1
vote
1 answer

Binding to Laravel IoC instead of instantiating again and again

In my app I have a service called "LogService" to log events and other items. I basically need to use this on every controller to log events by users. Instead of having to instantiate this service in each controller, I had two thoughts for…
ackerchez
  • 1,684
  • 7
  • 28
  • 49
1
vote
1 answer

PhpStorm for React gives me a red underline

I'm using PhpStorm 2018.1, and coding a ReactJS based project. I was a little annoyed with the red underline which seemed to say that my code was error even though it wasn't. I have followed the answers given from this forum: WebStorm/PhpStorm…
Ryuujo
  • 613
  • 1
  • 9
  • 26
1
vote
1 answer

Missing callback parameter documentation in Ctrl+Q tooltip

As shown on the image below, I have specified types for the parameters of callback of the checkAuth method but these are not present in Ctrl+Q-tooltip. This issue isn't limited to this particular function, it affects all other functions as well. I…
mechanicious
  • 1,576
  • 2
  • 15
  • 32
1
vote
1 answer

How to stop PhpStorm from autocompleting from multiple projects?

I have PhpStorm 2018.1 set up to have multiple projects in one window (all of the ones I work on at work.) There are probably 5 different content roots in all: 4 content roots from one project, and 1 content root in a separate project. Some of the…
timetofly
  • 2,957
  • 6
  • 36
  • 76
1
vote
0 answers

Adding new Blade directives (Prefix and Suffix fields?) [PhpStorm]

I am using Windows 7, PhpStorm 2018.1.3 and Laravel 5.6. I have installed spatie/laravel-permission and I would like to add the following Blade directives in PhpStorm: https://github.com/spatie/laravel-permission#using-blade-directives For…
PeraMika
  • 3,539
  • 9
  • 38
  • 63
1
vote
1 answer

Automatically adding return types to methods and functions

Is there an option to automatically add return types, or at least all me to generate them? What I want is my methods before PhpStorm generates the return types: function isValid() { return true; } After function isValid(): bool { return…
user9715413
1
vote
2 answers

Imports are highlighted like the packages do not exist (Symfony 4)

I'm working on a Symfony 4 project with PhpStorm 2018.1 It has become common for me to see the use declarations highlighted as if they haven't been installed with composer. The class belongs to a package which is not directly required in your …
Coder1
  • 13,139
  • 15
  • 59
  • 89
1
vote
1 answer

PhpStorm what is this background color?

I really don't know how I did this, but now my code is highlighted with this ugly olive color and I get a warning: "No data sources are configured to run this SQL" but my files are all PHP without any SQL command. Here is a screenshot below. Please…
Mike Aron
  • 550
  • 5
  • 13
1
vote
1 answer

PhpStorm - How to show deployment log

There used to be a log at the bottom which was showing the status of the deployment. E.g. after I saved a file, it was uploaded to the remote server and I was getting a message like "Automatic upload succeeded" or similar. The log disappeared, how…
Black
  • 18,150
  • 39
  • 158
  • 271
1
2 3