home.social

#phpactor — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #phpactor, aggregated by home.social.

fetched live
  1. Endlich Phpactor als Language Server mit dem Editor Kate verbunden. Die Einbindung dürfte für meinen Geschmack, wenn man in dem Feld noch nicht so zuhause ist, zwar gerne etwas intuitiver ablaufen, aber ich habe es mir letztendlich mit ein paar thematisch verwandten Dokufetzen zusammengereimt. Mal schauen, als wie hilfreich die Angelegenheit sich erweisen wird, und ob das Einbinden von Servern für HTML, CSS, JavaScript usw. nun anschließend etwas flotter vonstattengehen wird.

    #LSP #LanguageServerProtocol #Phpactor

  2. Endlich Phpactor als Language Server mit dem Editor Kate verbunden. Die Einbindung dürfte für meinen Geschmack, wenn man in dem Feld noch nicht so zuhause ist, zwar gerne etwas intuitiver ablaufen, aber ich habe es mir letztendlich mit ein paar thematisch verwandten Dokufetzen zusammengereimt. Mal schauen, als wie hilfreich die Angelegenheit sich erweisen wird, und ob das Einbinden von Servern für HTML, CSS, JavaScript usw. nun anschließend etwas flotter vonstattengehen wird.

    #LSP #LanguageServerProtocol #Phpactor

  3. vs

    This was a useful summary
    yarnaudov.com/phpactor-vs-inte

    Although last time I did this test phpactor's performance noticeably lagged and that post does not talk about performance at all. I *want* to use phpactor because it's

    Which is best for you and what do you like about it? There's PHPStan too but I'm never sure if that's something different or an equivalent. Boosts welcome

  4. #phpactor vs #intelephense

    This was a useful summary
    yarnaudov.com/phpactor-vs-inte

    Although last time I did this test phpactor's performance noticeably lagged and that post does not talk about performance at all. I *want* to use phpactor because it's #openSource

    Which is best for you and what do you like about it? There's PHPStan too but I'm never sure if that's something different or an equivalent. Boosts welcome

    #php #IDE #webDev

  5. Probably the biggest issue for me is that when using #helix with #phpactor auto completing variables always results in two dollar signs, which is incredibly annoying for obvious reasons. I am going to write an issue about this the next days, since this is obviously a bug (not sure if in #helix or #phpactor though). But there are also other things missing.

  6. Probably the biggest issue for me is that when using #helix with #phpactor auto completing variables always results in two dollar signs, which is incredibly annoying for obvious reasons. I am going to write an issue about this the next days, since this is obviously a bug (not sure if in #helix or #phpactor though). But there are also other things missing.

  7. An observation: #phpactor is nifty but also often inaccurate.

    (in this case: claiming an imported interface is never used, when in fact it is used in an is_subclass_of() check about a dozen lines later. It's also grousing about a called method in a trait not being declared in that same trait... but that's the thing about traits: there's no syntax to say "this trait should only be used by class X" or "this trait implements interface Y"... and if you declare the method as abstract, PHP might scream "collision!" when you use the trait. ...or is that only for non-abstract methods? Anyway, it gets ambiguous for me, so I avoid doing that.)

  8. An observation: #phpactor is nifty but also often inaccurate.

    (in this case: claiming an imported interface is never used, when in fact it is used in an is_subclass_of() check about a dozen lines later. It's also grousing about a called method in a trait not being declared in that same trait... but that's the thing about traits: there's no syntax to say "this trait should only be used by class X" or "this trait implements interface Y"... and if you declare the method as abstract, PHP might scream "collision!" when you use the trait. ...or is that only for non-abstract methods? Anyway, it gets ambiguous for me, so I avoid doing that.)

  9. @phpactor How do I disable some diagnostic features in phpactor? I tried adding this to my phpactor.json to no effect:

    "diagnostics.undefined_variable.enabled": false,
    "diagnostics.unresolvable_name.enabled": false

    The Diagnostics page doesn't mention how to use these keywords in the config file. phpactor.readthedocs.io/en/mas

    #phpactor

  10. @phpactor How do I disable some diagnostic features in phpactor? I tried adding this to my phpactor.json to no effect:

    "diagnostics.undefined_variable.enabled": false,
    "diagnostics.unresolvable_name.enabled": false

    The Diagnostics page doesn't mention how to use these keywords in the config file. phpactor.readthedocs.io/en/mas

    #phpactor

  11. TIL that `$http_response_headers` is a magic variable that magically appears in the local scope when you use a HTTP wrapper in PHP 😍 it's the sort of thing I want to say "won't fix" for in

  12. @godlike I'm currently switching between #Intelephense (paid) and #PHPActor -- I'd love a combination of both. :)

  13. @godlike I'm currently switching between #Intelephense (paid) and #PHPActor -- I'd love a combination of both. :)

  14. @dantleech @phpactor

    I've set up with (p) and another with (i) I used Mason to install each.

    What I noticed:

    - The calculated root_dir fails for (p); it uses PWD

    - BOTH give me signature help and completions (p) is slower and seems to crash on providing signatures for completion.

    - BOTH let me jump to definition, though (i) is noticeably faster at this.

    - Far fewer diagnostics from phpactor (no static analysis? Perhaps I need to add PHPStan as well?)

  15. @dantleech @phpactor

    I've set up #neovim with #phpactor (p) and another with #intelephense (i) I used Mason to install each.

    What I noticed:

    - The calculated root_dir fails for (p); it uses PWD

    - BOTH give me signature help and completions (p) is slower and seems to crash on providing signatures for completion.

    - BOTH let me jump to definition, though (i) is noticeably faster at this.

    - Far fewer diagnostics from phpactor (no static analysis? Perhaps I need to add PHPStan as well?)

  16. is fast enough for me on most projects, but I tried contributing to PHPstan the other day and it was unusable (big, complicated files). So going to invest some time into making it more efficient. Esp. now I'm temporarily liberated from work responsibilities :D

  17. 🆗 some follow ups. I've uninstalled the #intelephense npm package and I'm now connecting to #lsp provided by #phpactor installed globally.

    Sadly I wasn't able to use felixfbecker/language-server (as described in docs) since it's development is discontinued and it is not #php8 compatible.

    develop.spacemacs.org/layers/+

    I'm still missing completion and probably some other functionalities I'm unaware of.

    If only I'd find & fix the intelephense issue 🙏 .

  18. Written a bit of a silly blog post about the Phpactor Container. - The Best Container: dantleech.com/blog/2022/10/17/ not really sure I make my point though

  19. Quick reminder that you can sponsor some great developers on for their FOSS projects.

    I personally sponsor each month @dantleech and @ondrejmirtes for their a-ma-zing work on respectively and .

    If we all give 5€ per month to the creators of projects we use and love, it can make a huge difference. ❤️