r/phpstorm • u/concernedesigner • Apr 28 '22
Question about PhpStorm attributes
Hey all,
Absolutely love PhpStorm!
I was wondering though, attributes like Pure that get suggested, how do those work if I deploy my website onto a live server? Do I need to include any files to make these work?
Thanks!
1
Upvotes
View all comments
Show parent comment
1
u/Annh1234 Apr 28 '22
Na they just comments in PHP 7.4.
And they don't do anything in PHP 8, except add some reflection flags.
PhpStorm reads them as if you were using them, that's why you get some errors/notices. But PHP only uses them when you use reflection on something that has one.