7,608 questions
0
votes
1
answer
112
views
Parameter Info popup is extremely small and can’t be resized on macOS
I have an issue regarding the popup window size.
When I press View Parameter Info (⌘P) in PhpStorm, the popup window that shows the function parameters is extremely small. Its height is about 20–30px, ...
-1
votes
0
answers
91
views
Code works when enabled but errors when Xdebug is disabled [closed]
Cloudlinux
Opcache (disabled)
This situation has me scratching my head, so hopefully someone can shed some light.
I have Xdebug working on a cPanel/WHM server hosted site using PhpStorm as the IDE and ...
1
vote
1
answer
51
views
Why PHPStorm in laravel/vue/element-plus app shows '@' with error color?
At some moment my PHPStorm 2024.1.7 in laravel/vue/element-plus app became show '@' with error color :
Which option have I to set to remove this feature ?
I searched under Menu -> Settings -> ...
1
vote
2
answers
148
views
PHPUnit tests get awfully slow when all tests are run at once [closed]
I have a problem which I find awfully hard to debug:
In my application, I currently have about 1000 tests, so not much. They are split across several directories (tests/someDir, tests/someOtherDir, ...
-3
votes
1
answer
231
views
autoformat with CS Fixer exited with non-zero code [closed]
I'm trying to set up PHP Coding Standards Fixer with PhpStorm but when I run the code auto formatter (Ctrl Alt L) I get an error:
PHP External Formatter: Process exited with non-zero code
Clicking ...
1
vote
0
answers
191
views
How to run tests of the same phpunit testcase class in parallel with ParaTest?
I have a contrived test case showcasing how multiple test cases can slow the entire execution time down, as even though each is quick on its own, they add up if waited for before executing the next.
I ...
0
votes
0
answers
46
views
Can I use wildcards or regex in PhpStorm Deployment Mappings?
In PhpStorm, under
Tools | Deployment | Configuration | Mappings,
is it possible to use wildcards or regex when configuring paths?
jetbrains doumentation
0
votes
3
answers
157
views
PhpStorm adding script to my GET responses
I'm responding to a GET request with JSON data (Content-Type
application/json; charset=utf-8), but it keeps tacking on this random script to every response and I cannot get rid of it no matter what I ...
0
votes
1
answer
141
views
How can I insert HTML5 boilerplate into a .php file in PhpStorm/WebStorm using Emmet or Live Templates?
I'm working in WebStorm (PhpStorm) on a .php file, and I want to quickly insert the standard HTML5 boilerplate (the <!DOCTYPE html>…</html> structure).
In an .html file, I can type ! and ...
1
vote
2
answers
131
views
How to tell JetBrains PhpStorm to inspect required PHP files?
Let's say we have a PHP script, thus:
/main.php:
<?php
# this file generates a $string or other variable to use.
# This file is required so must always successfully load.
require "/path/to/...
0
votes
2
answers
104
views
Unable to debug my website on macOS with PhpStorm
My stack is
nginx + php php-fpm + xDebug + PHPStorm
I have put at the very beginning of my index.php
echo "foobar";
exit;
and placed a breakpoint on the very first line.
If I run the script ...
0
votes
0
answers
46
views
Is It Possible to open the PhpStorm Keymap window using a keyboard shortcut?
I want to open the Keymap window directly in PhpStorm using a keyboard shortcut, without going through Settings > Keymap or without using the quick action menu.
I know this is possible because the ...
0
votes
0
answers
58
views
MAMP & Xdebug Troubleshooting
I had Xdebug working on my MAMP Free installation but decided to purchase the full software. I saw in the menu unlike the free version I could enable Xdebug, so I did so, however the connection isn't ...
1
vote
0
answers
51
views
Persian typing issue in PhpStorm - any fixes?
When I try to type Persian text in PhpStorm (I'm using the latest version as of this post), the behavior is quite inconsistent. Some of the problems I've noticed include:
Characters do not appear ...
0
votes
0
answers
127
views
Why does PhpStorm not recognize element-plus library elements?
On a Vuejs site I am using element-plus library. My PhpStorm shows
in error background color as unknown component.
I searched in available plugins and found some :
Is some of these plugins relative ...
0
votes
0
answers
26
views
How to show near with CVS changed file/subdirectory some icon?
In my PhpStorm 2024 I have set 2 settings options
File | Settings | Version Control | Confirmation | "Highlight directories that contain modified files in the Project tree"
"and ...
0
votes
1
answer
83
views
PhpStorm freezes on startup with 400+ TypeScript files
I am having an issue where the IDE freezes on startup when having a project open.
It seems the issue is related to the problems in the 400+ TypeScript files, as it freezes after starting to try and ...
0
votes
1
answer
141
views
How to change background color of “Show History” block?
Where can I to change background color of “Show History” utility in PhpStorm 2024 :
?
As some colors are hardly to distinguish...
I tried to search under Settings, but did not find such options...
...
2
votes
0
answers
116
views
PhpStorm, Vue & TypeScript inlay hints for constants
When viewing TypeScript files in PhpStorm, constants have inlay hints like so:
The inlay hint in the screenshot above is Ref<boolean, boolean> and it is automatically displayed by PhpStorm.
Is ...
1
vote
1
answer
57
views
Can I refactor a child class to "merge in" it's parent class in PhpStorm?
I'm looking for a way to automate the "merging" of two classes in PhpStorm, essentially removing a parent class from a grandparent->parent->child chain.
For example, here's my initial ...
0
votes
0
answers
46
views
Integration of Codeberg into PhpStorm
I have a quick question: How can I integrate my GitHub alternative, Codeberg (https://codeberg.org/), into my IDE PhpStorm? I would like to be able to select Codeberg under "Welcome to PhpStorm&...
0
votes
1
answer
88
views
I'm only able to hit breakpoints in PhpStorm with Xdebug if I run docker compose with sudo
As title says, cant hit breakpoints if I run docker compose without sudo.
When I run sudo docker compose up --build, everything works.
When I run docker compose up, I can access my web app on htpp://...
4
votes
1
answer
1k
views
Xdebug helper is no longer supported for configuration of PhpStorm Xdebug configuration. What is a working alternative for the Chrome browser? [closed]
So PhpStorm suggest the Xdebug Helper Chrome extension for debugging with Xdebug. However the extension is no longer supported in the Chrome store and has been turned off with the recommendation of ...
1
vote
0
answers
46
views
How can I get a fully-classified class name in a PhpStorm's Quick Documentation popup?
Within PhpStorm if I use Ctrl + Q to get a quick dock for an implemented class I expect to see a fully-classified class name (a namespace part which is declared at a use section), and, as I remember, ...
0
votes
2
answers
66
views
How disable content actions for markdown files in PhpStorm
When I work with markdown files, this panel pops up when selecting. Is there any way to disable it? It really gets in the way and distracts, for example, I just want to copy some text.
I have already ...
1
vote
1
answer
129
views
Overriding PhpDocs Argument of a Method in a Parent Class
My question to get code completion working in a set of classes that I have.
+ abstract Model :: make(array{...})
+- SubModel
+- AnotherSubModel
+- ...
I have an abstract Model class, and ...
1
vote
1
answer
82
views
PhpStorm intellisense not working properly with method chaining + multiple classes
I'm having some trouble with PhpStorm intellisense when working with several classes. This is the structure I'm dealing with:
trait ContextTrait
{
public Subscriptions $subscription;
...
1
vote
1
answer
324
views
How to open Remote Development project project on client's machine for IntelliJ IDEs with one command?
I use IntelliJ remote development.
On my client I have PhpStorm 2024.3 running.
The remote server too starts a PhpStorm 2024.3 instance.
My issue is the workflow to start my project on my client:
...
0
votes
1
answer
150
views
What does the PhpStorm message "'file' shortcut can be used" refer to?
I have a controller that outputs an image. It's rather simple, ending in:
/** @var SplFileObject $attachment */
return new BinaryFileResponse($attachment, 200, [
'Content-Type' => $...
1
vote
0
answers
138
views
Cannot use SSH key in PhpStorm
I need to connect to my server via SSH using some private key (which is not default id_rsa). The key also requires some passphrase. I had no problem with it in terminal but now I want to connect in ...
0
votes
0
answers
69
views
PhpStorm marking CSS selector in Vue as unused
I hope this question is not too broad.
Moving away from SASS while upgrading to Tailwind 4, I removed the lang=scss attributes from my <style scoped> tags in .vue files.
When removing the scss ...
0
votes
0
answers
71
views
PhpStorm keeps spamming files into /tmp via SFTP
Some of my colleagues just encountered a weird bug. For some reason PhpStorm keeps sending files via SFTP to the /tmp folder until its full and the server (Ubuntu) is unresponsive. There's nothing to ...
0
votes
0
answers
50
views
PhpStorm not opening bin/console file. What's wrong?
Recently, I encountered an issue where the console file in the bin directory stopped opening. I was working on a small custom project and created a console file. Afterward, a dialog window appeared, ...
1
vote
1
answer
59
views
Control Xdebug by source IP
I have Xdebug working with PhpStorm and all is good, however, when I'm debugging code it also runs a debug session for others using the server.
Is it possible to define an IP address or IP range for ...
0
votes
1
answer
146
views
PhpStorm specify which autoload mapping to use from composer.json
I have a php (Laravel) project with several namespace mappings applied in the composer.json, like this:
{
"autoload": {
"psr-4": {
"App\\": [
"...
0
votes
0
answers
135
views
I am getting a syntax error when running in debug mode
I am trying to get Xdebug to work for a Laravel application in PhpStorm. I have Xdebug installed but not sure how to configure it in this instance. Usually the instance will run in Docker but I'm not ...
0
votes
1
answer
232
views
How to show changes in branch like uncommitted changes in PhpStorm?
In PhpStorm, uncommitted changed lines are marked with a blue or brown line besides the line number. I find this very useful.
Is there a way to also show the changed lines committed to the current git ...
-1
votes
1
answer
216
views
How to configure PhpStorm to work with Node.js and ESLint inside a running Docker container?
I'm working on a project using PhpStorm and Docker to manage development environments. Normally, I configure PhpStorm to use PHP running in a Docker container, and it works perfectly, whether it's for ...
0
votes
1
answer
72
views
Dec 2024 - PhpStorm uploads to server - but outside of public_html directory
For the last 4 days using PhpStorm, Dec 2024 version, I have played with deplyment configuration, trying different (a) root path (b) mapping deployment path ... but sadly nothing works; however, when ...
4
votes
1
answer
2k
views
Cannot log out of Copilot in PhpStorm
I accidentally logged into the wrong account when setting up GitHub's Copilot in PhpStorm.
I tried uninstalling the plugin and restarting.
I tried selecting a different GitHub account in the Copilot ...
0
votes
1
answer
56
views
How in PhpStorm 2024 change background color of nonexisting class?
In PhpStorm having error with undefined class of my php code:
Where can I change of background color to see error more clearly ?
Now I can hardly distinguish background color of error ...
I searched ...
0
votes
0
answers
28
views
In PhpStorm 2024.2 did not find with opened popup menu to create a file of selected type in current subdirectory
I moved to PhpStorm 2024.2 and when I have a file opened I see it full name of the file :
But what I did not find from prior version to open by right click possibilty with opened popup menu to create ...
0
votes
0
answers
91
views
How do I disable word wrap in PhpStorm, and keep it disabled?
I have tried every which way to disable soft-wraps, but they continue to appear every single time I open a file that extends past the current window.
I've unset the soft-wrap files
I've set soft-wrap ...
0
votes
1
answer
104
views
What is the inverse of "collapse all" in JetBrains IDEs?
I have accidentally collapsed my entire PHP class. I want to invert the action. I find only "collapse all"; I searched for "uncollapse", "unfold", yet this does not exist....
0
votes
0
answers
45
views
PhpStorm all text keywords completion
While working in Sublime Text, any text key, regardless of where, how, or in what type it is used, is automatically suggested for completion.
However, PhpStorm does not behave this way. It only ...
0
votes
1
answer
239
views
How to force PhpStorm to always show popup code completion alongside (AI) inline completion
Is there anyway of always showing the popup code completion alongside (AI) inline completion in PhpStorm/WebStorm?
My default view looks like below, where the inline completion shows, but there's no ...
1
vote
1
answer
78
views
PHPStorm, Laravel, Xdebug unable to hit my breakpoint
I hope someone can save me from drinking and banging my head against the wall ;) I am trying to use PHPstorm instead of VScode to have a complete out-of-the-box solution.
I can't get xdebug to work; I ...
0
votes
0
answers
59
views
Network settings for PhpStorm remote development
I am trying to connect PhpStorm remote development to a LAMP container (TurnKey Linux).
It's throwing the following message, and I can't get the remote IDE to connect. I'm certain port forwarding is ...
0
votes
0
answers
20
views
How can I find in which source .scss files is this compiled CSS-style configured?
There is a style in the compiled .css file:
media screen and (min-width: 768px) {
.SomePage_title .SomeSection_headline {
How can I quickly find in which of the 40 source .scss files this is ...
2
votes
1
answer
171
views
Symfony's framework.ide config for PhpStorm and WSL
How do I set up framework.ide config value so that it properly links to files in PhpStorm, when the code is run from WSL
I've tried phpstorm://open?file=%%f&line=%%l
I used to use the substitution ...