Search
259 results for “phpstorm”
-
Sitting in PhpStorm and trying to get type hinting to work for calling generic functions.
I assume `$result` should get the type `T` and `$x` should be parsed as `int`, but the editor gives me no hint at all.
Is this even supposed to work?
```
/**
* @template T
* @param callable(): T $fun
* @return T
*/
function call(callable $fun) {
$result = $fun();
return $result;
}$x = call(fn() => 1);
```
https://phpstan.org/r/76b4d50f-dd91-4e39-993a-458b26c321cf
#php #phpStorm #generics #phpDoc -
Sitting in PhpStorm and trying to get type hinting to work for calling generic functions.
I assume `$result` should get the type `T` and `$x` should be parsed as `int`, but the editor gives me no hint at all.
Is this even supposed to work?
```
/**
* @template T
* @param callable(): T $fun
* @return T
*/
function call(callable $fun) {
$result = $fun();
return $result;
}$x = call(fn() => 1);
```
https://phpstan.org/r/76b4d50f-dd91-4e39-993a-458b26c321cf
#php #phpStorm #generics #phpDoc -
Sitting in PhpStorm and trying to get type hinting to work for calling generic functions.
I assume `$result` should get the type `T` and `$x` should be parsed as `int`, but the editor gives me no hint at all.
Is this even supposed to work?
```
/**
* @template T
* @param callable(): T $fun
* @return T
*/
function call(callable $fun) {
$result = $fun();
return $result;
}$x = call(fn() => 1);
```
https://phpstan.org/r/76b4d50f-dd91-4e39-993a-458b26c321cf
#php #phpStorm #generics #phpDoc -
Sitting in PhpStorm and trying to get type hinting to work for calling generic functions.
I assume `$result` should get the type `T` and `$x` should be parsed as `int`, but the editor gives me no hint at all.
Is this even supposed to work?
```
/**
* @template T
* @param callable(): T $fun
* @return T
*/
function call(callable $fun) {
$result = $fun();
return $result;
}$x = call(fn() => 1);
```
https://phpstan.org/r/76b4d50f-dd91-4e39-993a-458b26c321cf
#php #phpStorm #generics #phpDoc -
Decided to give #PhpStorm a try for my #IDE now that I'm getting back into #PHP #development . So far I like what I see. I'll ditch #VSCode for now.
#Coding #Scripting #Async #Fibers #CooperativeMultitasking #Revolt #EventLoop
-
Thought I'd move forward to PhpStorm 2026.2 EAP. I know it's an EAP, but the first file that loads in the project, is a test file from yesterday.. and now there's no ability to run the test with the usual keyboard shortcut and the gutter run icons etc have disappeared.. how does a regression like that even get in there? (not the first time this has happened over the product lifetime).
Seriously.. #Jetbrains is becoming a really fucked up company with a massive slop cannon.
Time to find better
-
Meta Storm Plugin – еще один плагин для PHPStorm
Логично ведь, что если ты пишешь функцию, которая должна принимать значение из набора, то нужно показать этот набор. А может еще и свалидировать ошибку. А еще и провалиться внутрь по CTRL+Click. А еще и обратный референс найти. Ну и рефакторинг общий сделать, раз уж разошлись. Ребята делающие плагины под свои технологии молодцы, но как мне сделать то же самое с моим MyClass::readFile('users.csv') ? А если нужно подсказать свойства текущей модели $model->getAttributeLabel('id') ? А если я хочу сделать подсказки в query builder? Да и вообще, зачем мне еще один плагин, PHPStorm ведь и без него справлялся годами? Узнать подробнее
https://habr.com/ru/articles/868898/
#php #intellij #plugin #intellij_platform #developer_experience #phpstorm
-
Meta Storm Plugin – еще один плагин для PHPStorm
Логично ведь, что если ты пишешь функцию, которая должна принимать значение из набора, то нужно показать этот набор. А может еще и свалидировать ошибку. А еще и провалиться внутрь по CTRL+Click. А еще и обратный референс найти. Ну и рефакторинг общий сделать, раз уж разошлись. Ребята делающие плагины под свои технологии молодцы, но как мне сделать то же самое с моим MyClass::readFile('users.csv') ? А если нужно подсказать свойства текущей модели $model->getAttributeLabel('id') ? А если я хочу сделать подсказки в query builder? Да и вообще, зачем мне еще один плагин, PHPStorm ведь и без него справлялся годами? Узнать подробнее
https://habr.com/ru/articles/868898/
#php #intellij #plugin #intellij_platform #developer_experience #phpstorm
-
Meta Storm Plugin – еще один плагин для PHPStorm
Логично ведь, что если ты пишешь функцию, которая должна принимать значение из набора, то нужно показать этот набор. А может еще и свалидировать ошибку. А еще и провалиться внутрь по CTRL+Click. А еще и обратный референс найти. Ну и рефакторинг общий сделать, раз уж разошлись. Ребята делающие плагины под свои технологии молодцы, но как мне сделать то же самое с моим MyClass::readFile('users.csv') ? А если нужно подсказать свойства текущей модели $model->getAttributeLabel('id') ? А если я хочу сделать подсказки в query builder? Да и вообще, зачем мне еще один плагин, PHPStorm ведь и без него справлялся годами? Узнать подробнее
https://habr.com/ru/articles/868898/
#php #intellij #plugin #intellij_platform #developer_experience #phpstorm
-
I've made two Container issues for #PHPStorm (and #JetBrains overall) that should fix some whoes on remote development.
https://youtrack.jetbrains.com/issue/IJPL-174047/Missing-user-to-run-Docker-Container
https://youtrack.jetbrains.com/issue/WI-80106/Podman-support-for-Remote-Interpreter-failsLet's see if JetBrains higher branch is more focused on shoving more AI to their products to appease investors or actually making their products good.
#IDE #CodeEditor #Bug #BugFixing #YouTrack #Podman #Docker #Containers #OCI #Container #Programming #Software #SoftwareDevelopment
-
Last 0.8 version of #PHPantom made me switch back to PHPStorm.
That's is how bad it is.
#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Zed #ZedEditor #Rust #Mago #LSP
-
Last 0.8 version of #PHPantom made me switch back to PHPStorm.
That's is how bad it is.
#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Zed #ZedEditor #Rust #Mago #LSP
-
Last 0.8 version of #PHPantom made me switch back to PHPStorm.
That's is how bad it is.
#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Zed #ZedEditor #Rust #Mago #LSP
-
Last 0.8 version of #PHPantom made me switch back to PHPStorm.
That's is how bad it is.
#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Zed #ZedEditor #Rust #Mago #LSP
-
Last 0.8 version of #PHPantom made me switch back to PHPStorm.
That's is how bad it is.
#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Zed #ZedEditor #Rust #Mago #LSP
-
Beim Vereinbarkeitsatlas konnten wir am Wochenende auf dem Weg der Normalisierung ein paar wichtige Tickets schließen. Der Mentor und wir sind zwar noch ein gutes Stück vom Ziel entfernt, aber es wird. Und der neue Techstack hilft ungemein.
-
Beim Vereinbarkeitsatlas konnten wir am Wochenende auf dem Weg der Normalisierung ein paar wichtige Tickets schließen. Der Mentor und wir sind zwar noch ein gutes Stück vom Ziel entfernt, aber es wird. Und der neue Techstack hilft ungemein.
-
Beim Vereinbarkeitsatlas konnten wir am Wochenende auf dem Weg der Normalisierung ein paar wichtige Tickets schließen. Der Mentor und wir sind zwar noch ein gutes Stück vom Ziel entfernt, aber es wird. Und der neue Techstack hilft ungemein.
-
When a JetBrains IDE says my YAML front matter in a Markdown file has a schema validation error, what schema is it validating against? Can I change the schema?
-
“Expected parameter of type 'mixed[]', 'array' provided”
Go home PhpStorm! You’re drunk!
-
A third-party #Composer plugin is breaking my Composer scripts and I can't trouble-shoot it because #PhpStorm is unable to step debug into Composer phar archive, even though 13yo blog articles suggest it should, and my command's code is not even called when the plugin is enabled. I can't find any setting related to this, and I don't want to fiddle with my setup to run Composer from source.
#php #xdebug -
Hello Jens,
Thanks again – I used your discount code for JetBrains, PHPStorm today 👍
As I'm a fan of KirbyCMS and use LaravelHerd for local websites, I needed an IDE that included PHP.
At first, I thought that more than 200 EUR/year for both (WebStorm and PHPStorm) was too expensive...
It took me a moment to find the following information:
https://www.jetbrains.com/products/compare/?product=webstorm&product=phpstormThen I went for it 😉
-
Hello Jens,
Thanks again – I used your discount code for JetBrains, PHPStorm today 👍
As I'm a fan of KirbyCMS and use LaravelHerd for local websites, I needed an IDE that included PHP.
At first, I thought that more than 200 EUR/year for both (WebStorm and PHPStorm) was too expensive...
It took me a moment to find the following information:
https://www.jetbrains.com/products/compare/?product=webstorm&product=phpstormThen I went for it 😉
-
Hello Jens,
Thanks again – I used your discount code for JetBrains, PHPStorm today 👍
As I'm a fan of KirbyCMS and use LaravelHerd for local websites, I needed an IDE that included PHP.
At first, I thought that more than 200 EUR/year for both (WebStorm and PHPStorm) was too expensive...
It took me a moment to find the following information:
https://www.jetbrains.com/products/compare/?product=webstorm&product=phpstormThen I went for it 😉
-
Hello Jens,
Thanks again – I used your discount code for JetBrains, PHPStorm today 👍
As I'm a fan of KirbyCMS and use LaravelHerd for local websites, I needed an IDE that included PHP.
At first, I thought that more than 200 EUR/year for both (WebStorm and PHPStorm) was too expensive...
It took me a moment to find the following information:
https://www.jetbrains.com/products/compare/?product=webstorm&product=phpstormThen I went for it 😉
-
Another year of support from #JetBrains providing a free licence for their IDE suite. They have supported the project for 6 years now.
#phpstorm and #pycharm have changed the way I work and made my life a lot easier.
Thanks again for supporting free software @jetbrains
-
Can #JetBrains Junie AI autonomously code a complex task? Spoiler: YES. 🤯
I provided the new SelectionStorageInterface.php and gave Junie AI this detailed prompt:
"Modify all classes using the interface, implement cacheKey, ttl, and hasSelection. Adapt sessionStorage. Write unit tests covering new parameters. Add configurable ttl to config/definition.php and inject it into the SelectionManager via config/services.php."
See result here: https://github.com/tito10047/batch-selection-bundle/commit/3049cce418d291b7db59a80727de6a3a8bded59f
-
When you need the current timestamp (like in TYPO3 where timestamps are used as exception codes), you can create a custom live template in PhpStorm that inserts the current timestamp. Very helpful.
https://www.rudyisme.com/item/shortcut-to-get-the-current-unix-timestamp-in-phpstorm
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.
-
I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.