Skip to main content

Questions tagged [phpstorm]

JetBrains PhpStorm is a commercial IDE for PHP built on JetBrains' IntelliJ IDEA. PhpStorm provides an intelligent editor for PHP, HTML, CSS and JavaScript with refactoring and on-the-fly code analysis.

phpstorm
0 votes
0 answers
64 views

JetBrains IDE custom refactor extract to new file

In JetBrains IDEs there's an option called refactoring witch allow you to easily refactor your code. One of the things it can do is extract some part of your code inside a new file. For example, when ...
Rignchen's user avatar
0 votes
1 answer
200 views

PhpStorm encountered issues with debugging Xdebug

This is my php.ini zend_extension = xdebug xdebug.mode=debug xdebug.client_host=127.0.0.1 xdebug.client_port=611 xdebug.idekey=PHPSTORM My env: PHP 8.1.3 macOS PhpStorm 2023.3.2 httpServer cmd ...
gogobar's user avatar
0 votes
0 answers
40 views

Can in PhpStorm insert code which is in clipboard commented?

Can I in PhpStorm 2023.2.2 by selecting hot key inside editor to insert code which is in clipboard commented? The result would be something like : /* Text from clipboard */ I did not find where enter ...
mstdmstd's user avatar
  • 2,941
0 votes
2 answers
84 views

How to avoid inspection warning when call a static method of a variable class name in PhpStorm?

When I call something like: $class_name = '\App\Models\User'; $class_name::create($attributes); PhpStorm shows an inspection warning "Method 'create' not found in string". I don't want to ...
Yevgeniy's user avatar
0 votes
0 answers
93 views

How correctly work with stub files of Laravel project in PhpStorm 2023?

After I installed stubs in Laravel 10 app with command php artisan stub:publish and try to open one of *stub files, it is opened by kate of my Kubuntu 22.04. In PhpStorm 2023.2 I applied command “...
mstdmstd's user avatar
  • 2,941
0 votes
0 answers
81 views

Unresolved variable ckeditorInstance PhpStorm

Is there any way how to make PhpStorm recognize what is a ckeditorInstance in this context? const ckEditorElement = document.querySelector('.ck-editor__editable'); const ckEditorInstance = ...
mrzalais's user avatar
0 votes
0 answers
301 views

How to configure JetBrains IDE (PhpStorm or WebStorm) to autocomplete Vue components from sibling project in monorepo

I am trying to solve a problem related to PhpStorm's and/or WebStorm's auto-import feature of Vue components. I have a monorepo project structure (attachment 1) with a component library project and a ...
Dan Charousek's user avatar
0 votes
0 answers
119 views

PhpStorm Tailwind Autocompletion not working inside of script tags

Autocomplete suggestions for Tailwind classes are working fine except if the string literal is surrounded by a script tag. File extension doesn't matter. Works inside of js file: Does not work: ...
curry's user avatar
  • 3
0 votes
1 answer
68 views

PhpStorm suggestions of dynamic class declaration

I'm using PhpStorm, and I have a class like this. class MasterClass { public function getClass($className) { require_once("/php/class/$className.php"); $newClass = ...
Fabio T's user avatar
0 votes
1 answer
97 views

How to save my formatting of MySQL stored procedure?

I work with MySQL stored procedures in PhpStorm 2023.2 and I edit procedure in console editor I use formatting But after I saved stored procedure or used Alt + R for automatic formatting of the code ...
Petro Gromovo's user avatar
0 votes
1 answer
33 views

How to disable replace with "?->" suggestions?

I am not entirely sure what to even google for (I tried few things without luck). No option on the popup to disable that particular suggestion - anyone know how to do this? When I click "More ...
gvanto's user avatar
  • 2,038
0 votes
1 answer
85 views

How can I call this controller in Codeigniter?

I´m totally new to php and Codeigniter. Below you can see my first controller that I wrote. namespace App\Controllers; class FirstController extends BaseController{ public function viewExample(){...
Lars's user avatar
  • 1
0 votes
1 answer
183 views

Xdebug validation issues with PhpStorm and WSL2

I'm trying to add Xdebug to my Magento project for better debugging. I'm actually working on WSL2, where I have installed Laradock. If I try to display xdebug_info() I can see I have properly ...
dandan's user avatar
  • 1
0 votes
0 answers
74 views

Why PhpStorm does not show latest available packages for some project?

Usually PhpStorm 2023.3 shows all latest available packages in project composer.json file. But in the laravel/PHP project I work now PhpStorm 2023.3 does not show latest available packages : Under ...
mstdmstd's user avatar
  • 2,941
0 votes
0 answers
28 views

Can I run PhpStorm editor in "diff" mode - to show live changes to text like it shows in gutter

Can I see in PhpStorm editor constantly highlighted changes made to file? Same way it is shown when you use "show diff" option in git submenu, but in default view.
Krzysztof's user avatar
  • 309

15 30 50 per page
1
4 5
6
7 8
506