Using phpactor as a language server for WordPress development

Danny van Kooten

#phpactor is clearly not understanding the assignment :-/

#missingThePoint #PHP

#phpActor's static code analysis just highlighted a bug I would never have spotted!

#php

#phpactor vs #intelephense

This was a useful summary
https://yarnaudov.com/phpactor-vs-intelephense.html

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

intelephense
33.3%
phpactor
33.3%
other (pls. reply)
33.3%
Poll ended at .
Phpactor vs Intelephense [Feature comparison]

Yoan Arnaudov Blog

C'est en forgeant qu'on devient forgeron, mais pour transformer #neovim en #Symfony #IDE comment fait-on ?

https://videos-libr.es/w/a89M83oh2DXupBoEhmxRUL

Bon pour moi, la question qui reste, c'est plutôt pour déployer #PhpActor comment fait-on ?

$ cd ~/home/you/somewhere
$ git clone https://github.com/phpactor/phpactor.git
$ cd phpactor
$ composer install
$ cd /usr/local/bin

Et là, nada :(

#neovim #mouseless #editor

4/6

Neovim, un IDE open source, flexible, et pas si compliqué - Florian Merle et Mathias Arlaud - JdLL2023

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

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

@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. https://phpactor.readthedocs.io/en/master/reference/diagnostic.html

#phpactor

Diagnostics — Phpactor latest documentation

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 #phpactor
@godlike I'm currently switching between #Intelephense (paid) and #PHPActor -- I'd love a combination of both. :)