phpstorm's questions - English 1answer

0 phpstorm questions.

I want to import data from a .json file into a PHP file and dynamically, by using variable variables and a foreach loop, define new variables. However, PhpStorm doesn't recognize my variables and give ...

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 ...

I'm using PhpStorm in conjunction with a WAMP localhost and have xdebug enabled. Looking for the best solution to utilize xdebug and PhpStorm in order to debug my PHP script to see which line $var = ...

I used to get highlights for any unused constants or class constants in PhpStorm. Now I can't get it work again. Maybe it was a plugin, I'm not sure. What I tried: I tried to run inspect the code I ...

I've been working with ddev on my Drupal projects, and now want to use xdebug so I have step-debugging with PhpStorm (or really any IDE would be fine). But I can't seem to get it to stop on ...

I cannot get a curl request fired from a Vagrant instance on my machine to fire Xdebug breakpoints in my code in PhpStorm. Everything works correctly when I instantiate a request from my browser, but ...

I am using php storm 7.1.3. Im new to that IDE I have a mysql database on separate .sql file. .sql file is inside project folder. Without using xampp, I want to import this database to phpstorm and ...

I am using docker-compose to bring up my containers. I am then running PHPUnit tests via PhpStorm. When a test has completed, the container is stopped (Exit 0). I tried adding restart: always to my ...

I've been trying to set up xdebug for PHP CLI commands. I already have it working just fine for debugging Apache 2 (browser/API connections). The server is setup through Vagrant. So I copied over some ...

While debugging a test in PhpStorm, the console is taken over by the test results. Because of this I cannot execute functions with real time variables at a breakpoint. Is it possible to open another ...

I am trying to use some predefined code styles in PhpStorm, in order to autoformat using Ctrl+Alt+L, such as Zend or CodeIgniter. However, all of them convert a simple if ($a) { // } else if ($b) {...

I am running unit testing on a Laravel project through PhpStorm inbuilt test environment. I am getting token mismatch exception. All the configurations are correct and it was working fine. Suddenly ...

I can press Ctrl + Shift + F in PhpStorm, and I will get a window with search options. I can search for particular string in all project files, I can leave "Text to find" field empty and put name of ...

I was using PhpStorm as my code editor and DB client both. It was working fine. But suddenly it stopped working. Deleting connection and then add new data source with absolute correct database ...

Is there any way to run Ecmascript (JS without DOM) scripts locally in PhpStorm and see result in console? (Without running a browser)

Within PHPStorm, I have been able to get autocomplete working with Codeigniter by adding a file to config/autocomplete.php which contains properties. PhpStorm is able to read this file, and allow me ...

I have this code: pell.init({ element: ma_visual_divs[i], actions: [ 'bold', { name: 'custom', icon: 'C', title: 'Custom Action', ...

I am having issues when a form is submitted instead of a php page being called I get a 404 error. Both files are in the same directory and I am using PHPStorm as the IDE and Xampp as the php ...

Is there a way to open the integrated terminal in PhpStorm (Windows) in the current working directory? I recently switched from Sublime Text, which had a function where I could right-click a folder ...

I have a project that uses both PHP and Python, and I would like to use JetBrains IDEs (in this case PhpStorm and PyCharm) to work with both languages. However when I open the project using both IDEs ...

I'm using PhpStorm 2018.1.5 and I'd like to set up test configurations with 2 different interpreters. The reason is I need one configuration with xdebug enabled (to run code coverage reports) and ...

I have a little annoying problem on my PhpStorm IDE (Version 2017.3.4). So I am trying to have suggestion of my constants defined on my project. But when I am trying to Ctrl + Space there is none of ...

Problem While trying to push to my project on gitlab.com in PhpStorm, I get the following error: fatal: The remote end hung up unexpectedly error: failed to push some refs to 'https://gitlab.com/me/...

I have successfully configured Xdebug to PhpStorm, however, the Xdebug helper isn't communicating with the PhpStorm and I cannot figure out why. Others have a somewhat similar issue in regards to ...

I am using PHPStorm for develop my PHP web pages. All work fine with my Apache Server, XDebug, and a simple web PHP project. No problem. But, when I try to debug a Laravel 5.1 Web Project using php ...

I'm following the TypeScript create-react-app tutorial and I managed to get Jest + enzyme working through the command line, but I'd also like to be able to test single functions and whatnot inside of ...

I am using PhpStorm for working on Laravel projects. However, the mouse gets stuck in text highlight mode and right click does not work on the IDE. Closing the IDE and restarting does not help solve ...

I have problem with PhpStorm (WebStorm) and node_modules. Very often IDE is not aware of some libraries. Now node_modules is not excluded and I think it should. But node_modules is not added to ...

PhpStorm version: 9.0.2 Symfony Plugin version: 0.11.109 Symfony version: 3.0.1 Template referencing works fine for template files placed under app/Resources/views but not for files placed under ...

I have a npm run watch job that uses node-scss to watch scss files and compile them into css files. I use the PhpStorm IDE on Windows and when I make changes to an scss file, the file watcher (npm ...

How would one create a path as such? Since the \$is an escape for the $ symbol, need to keep the backslash and the ${variable} together. use App\Domain\Entities\${EntityName}; It's probably really ...

I am trying to build a service called DataFileParser in my Symfony application which reads a csv file. I changed the parse function of my service for the purpose of this question, to make it look more ...

I want to rebase a feature branch from develop. I am using PhpStorm Git integration and I have 2 different develop branches: refs/remotes/origin/develop refs/heads/develop In order to do not mess up ...

I have a readability problem in the error messages (symfony) that the PhpStorm terminal sends me. Red background with grey text. Do you have a solution for a better legibility? I'm use : Windows OS ...

How do you add additional language scopes to multiple live templates in JetBrains IDEs? I know you can select each live template individually and click the change 'Change' link next to 'Applicable in ...

I configured everything for PhpStorm and xdebug to work, I'm running Ubuntu 14.04. the connection back to the IDE is not established, and I get this in the IDE event Log Cannot accept external ...

Is there a way to go from route to the corresponding method of the controller by Ctrl + Click like we go by clicking on any function name? For example when we have route like this: Route::get('/some/...

The code after automatic formatting with Ctrl + Alt + L looks like this: class ExampleModel extends Model { public $timestamps = false; protected $table = 'table1'; protected $primaryKey =...

In PHPStorm's Git interface it's easy to stage files and folders, with the "+Add" option in the "Git >" submenu of the right click context menu. But, how do I remove them from stage?

I just updated to PhpStorm 2016 and I noticed that suddenly every time I press Ctrl + S to save the file it removes the spaces/tabs that I pressed to continue writing after testing this bit of code. ...

I am trying to setup Xdebug on macOS with PhpStorm. Xdebug is configured for connections on port 9001. I have 2 containers, one running nginx listening on ports 80 and 443, the other one running PHP ...

Is there way to make Initialize fields option available for __construct() params to be also available for other methods? I have a lot of classes which has methods setting data which are not ...

I have a following problem with Less. I have configured Less file watcher to work with PhpStorm and so far everything is working. Now I have added a few plugins clean-css and autoprefix and suddenly ...

I occasionally lose all my PhpStorm settings and projects when my PC crashes. File -> Export either doesn't back up everything, or File -> Import doesn't work. I have custom everything - layout,...

I'm using PhpStorm's Command Line Tool Support for using Laravel's artisan as a "Tool based on Symfony console" as shown below: Problem is I want to share this across all my projects (global scope). ...

First of all I have to note that this all worked well some time ago. I have returned to project after some time. Meanwhile I have updated PhpStorm and migrated to Win10. Everything else stayed ...

I want to run tests in my applications in PhpStorm. Application is running on Symfony, for tests I am using PHPUnit and Symfony PHPUnit bridge. Tests are running, but PhpStorm does not display any ...

I am trying to compile my styles.less to styles.css. My folder structure is following: assets->less->styles.less assets->css->styles.css I believe my configurations are wrong. In ...

I've just downloaded the new PHPStorm EAP, and noticed this screenshot: And I like it very much. Thing is, I can't find any option to make my install looks like this. I know about color scheme, but ...

I'm using PhpStorm 2017.1.4 with the vue.js plugin. The problem I have is: this plugin is extremely slow and makes coding impossible as you type and you don't see what you type only with 1 to 2 ...

Language

Popular Tags