eclipse-pdt / pdt

PHP Development Tools project (PDT)
https://eclipse.org/pdt
Eclipse Public License 2.0
189 stars 46 forks source link

add support for non standard PHP generic annotations #283

Open knowledgeplaces opened 3 months ago

knowledgeplaces commented 3 months ago

I have a PHP project using a lot of packages provided by Composer. Some of these packages make intensive use of PHP generic annotations.

All these generic annotations are marked as error, so it is very inconvenient because I get more than 2000 errors in my project, and it takes a lot of time to see if these errors come from my code or from generic annotations.

My Eclipse environment is MyEclipse Enterprise Workbench Version: 2024.1.0 Build id: 16.0.0-20240611 with PDT version 8.3 and additional plugins such as Doctrine. My system is Windows 11, PHP 8.2.

To reproduce, you can add code as described in attached screen copy. generic annotation