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
30 views

How to display ECHO real-time outputs in the browser Xdebug?

The real-time outputs are only displayed in the PhpStorm "Output" tab, and only when the script finishes does it display the result in the browser. This setup didn't work for me: ...
Jorge Gatica's user avatar
0 votes
1 answer
26 views

PhpStorm how to upload individual differences on file comparison viewer between local and remote files

PhpStorm 2023.3.3 When viewing a local PHP file we can compare differences to the remote (Server SSH access) file, and this difference split screen view highlights the differences between the local ...
Martin's user avatar
  • 22.6k
1 vote
0 answers
65 views

PhpStorm ExpectedValues/expectedArguments array auto-complete

Is it possible to use the ExpectedValues trait or the expectedArgument() meta directive to hint the possible values in an array? My use-case is a function that accepts either an array or a string: ...
K1ll3rM's user avatar
  • 63
0 votes
0 answers
48 views

Make PhpStorm respect v-if for variable resolution in a project with Vue 3, Pinia, and TypeScript

I'm using JetBrains PhpStorm for a Vue 3 project that utilizes TypeScript and a Pinia store. The Pinia store defines a variable currentSnackbar=ref<ISnackbar>(). The value may be undefined or an ...
Andrew Sauder's user avatar
0 votes
1 answer
108 views

WSL2 Docker containers displayed as orphans in PhpStorm

I'm using Windows 11 and PhpStorm (2023.3.2). PhpStorm connects to a WSL2 Ubuntu (22.04 jammy). This Ubuntu has Docker engine installed, it is used for builds and composing dev servers. PhpStorm is ...
Issac411's user avatar
0 votes
1 answer
218 views

PhpStorm 'Cannot resolve symbol' problem with multiple Vue.js projects installed

Root project structure: -node_modules/ ... -package.json -package-json.lock -vue2/ ... -vue3/ -node_modules/ -src/ App.vue main.ts shims-vue.d.ts -package.json -tsconfig.json -webpack....
The50's user avatar
  • 1,108
0 votes
0 answers
61 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
189 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,911
0 votes
2 answers
81 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
90 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,911
0 votes
0 answers
80 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
275 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
115 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

15 30 50 per page
1
3 4
5
6 7
505