IDE/static analysis engine agnostic php8 attributes

55 views
Skip to first unread message

b...@mewburn.id.au

unread,
Nov 9, 2020, 5:21:58 PM11/9/20
to PHP Framework Interoperability Group
Hello,

As an author of a php language server (intelephense) I was wondering if there was any interest or work in progress in standardising a set of PHP8 attributes to be used as IDE/static analysis/language server metadata. Attributes like pure, immutable, deprecated etc. 

Kind regards
Ben

Larry Garfield

unread,
Nov 10, 2020, 3:38:54 PM11/10/20
to PHP-FIG
There's been some discussion of that around. Currently, the major static analysis projects see to want to take a wait-and-see approach and see what sort of attributes people start using, and then standardize those. Hopefully in 6-8 months or so they'll have a better idea of what would be useful and we can start making a FIG-standard set of attributes.

The first out of the gate was JetBrains, who added some attributes to PHPStorm already (or at least the upcoming version):

https://blog.jetbrains.com/phpstorm/2020/10/phpstorm-2020-3-eap-4/

--Larry Garfield
Reply all
Reply to author
Forward
0 new messages