home.social

Search

259 results for “phpstorm”

  1. 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);
    ```
    phpstan.org/r/76b4d50f-dd91-4e
    #php #phpStorm #generics #phpDoc

  2. 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);
    ```
    phpstan.org/r/76b4d50f-dd91-4e
    #php #phpStorm #generics #phpDoc

  3. 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);
    ```
    phpstan.org/r/76b4d50f-dd91-4e
    #php #phpStorm #generics #phpDoc

  4. 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);
    ```
    phpstan.org/r/76b4d50f-dd91-4e
    #php #phpStorm #generics #phpDoc

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

  6. Meta Storm Plugin – еще один плагин для PHPStorm

    Логично ведь, что если ты пишешь функцию, которая должна принимать значение из набора, то нужно показать этот набор. А может еще и свалидировать ошибку. А еще и провалиться внутрь по CTRL+Click. А еще и обратный референс найти. Ну и рефакторинг общий сделать, раз уж разошлись. Ребята делающие плагины под свои технологии молодцы, но как мне сделать то же самое с моим MyClass::readFile('users.csv') ? А если нужно подсказать свойства текущей модели $model->getAttributeLabel('id') ? А если я хочу сделать подсказки в query builder? Да и вообще, зачем мне еще один плагин, PHPStorm ведь и без него справлялся годами? Узнать подробнее

    habr.com/ru/articles/868898/

    #php #intellij #plugin #intellij_platform #developer_experience #phpstorm

  7. Meta Storm Plugin – еще один плагин для PHPStorm

    Логично ведь, что если ты пишешь функцию, которая должна принимать значение из набора, то нужно показать этот набор. А может еще и свалидировать ошибку. А еще и провалиться внутрь по CTRL+Click. А еще и обратный референс найти. Ну и рефакторинг общий сделать, раз уж разошлись. Ребята делающие плагины под свои технологии молодцы, но как мне сделать то же самое с моим MyClass::readFile('users.csv') ? А если нужно подсказать свойства текущей модели $model->getAttributeLabel('id') ? А если я хочу сделать подсказки в query builder? Да и вообще, зачем мне еще один плагин, PHPStorm ведь и без него справлялся годами? Узнать подробнее

    habr.com/ru/articles/868898/

    #php #intellij #plugin #intellij_platform #developer_experience #phpstorm

  8. Meta Storm Plugin – еще один плагин для PHPStorm

    Логично ведь, что если ты пишешь функцию, которая должна принимать значение из набора, то нужно показать этот набор. А может еще и свалидировать ошибку. А еще и провалиться внутрь по CTRL+Click. А еще и обратный референс найти. Ну и рефакторинг общий сделать, раз уж разошлись. Ребята делающие плагины под свои технологии молодцы, но как мне сделать то же самое с моим MyClass::readFile('users.csv') ? А если нужно подсказать свойства текущей модели $model->getAttributeLabel('id') ? А если я хочу сделать подсказки в query builder? Да и вообще, зачем мне еще один плагин, PHPStorm ведь и без него справлялся годами? Узнать подробнее

    habr.com/ru/articles/868898/

    #php #intellij #plugin #intellij_platform #developer_experience #phpstorm

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

    #Doctrine #phpstorm #MAMP

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

    #Doctrine #phpstorm #MAMP

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

    #Doctrine #phpstorm #MAMP

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

    #JetBrains #PhpStorm #IntelliJ

  13. “Expected parameter of type 'mixed[]', 'array' provided”

    Go home PhpStorm! You’re drunk!

    #PHP #PhpStorm

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

  15. @j9t

    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:
    jetbrains.com/products/compare

    Then I went for it 😉

    #JetBrains #PHPStorm #WebStorm #KirbyCMS #LaravelHerd

  16. @j9t

    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:
    jetbrains.com/products/compare

    Then I went for it 😉

    #JetBrains #PHPStorm #WebStorm #KirbyCMS #LaravelHerd

  17. @j9t

    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:
    jetbrains.com/products/compare

    Then I went for it 😉

    #JetBrains #PHPStorm #WebStorm #KirbyCMS #LaravelHerd

  18. @j9t

    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:
    jetbrains.com/products/compare

    Then I went for it 😉

    #JetBrains #PHPStorm #WebStorm #KirbyCMS #LaravelHerd

  19. Another year of support from providing a free licence for their IDE suite. They have supported the project for 6 years now.

    and have changed the way I work and made my life a lot easier.

    Thanks again for supporting free software @jetbrains

  20. 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: github.com/tito10047/batch-sel

    #phpstorm #junie #symfony

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

    rudyisme.com/item/shortcut-to-

    #TYPO3 #PhpStorm #timestamp

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

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