php-generics-standard
php-generics-standard copied to clipboard
Proposal for standard for generics (for static analysis)
**Reasons for formalising a standard** 1. It *might* increase uptake. The lack of a standard is the reason cited in PHPStorm's 2020.3 [release announcement](https://blog.jetbrains.com/phpstorm/2020/12/phpstorm-2020-3-release/#psalm_and_phpstan_support) for not fully supporting `@template`: >...
The description in https://github.com/DaveLiddament/php-generics-standard#constructor is a bit unclear to me. If you are passing a literal integer value, it's obvious that `T = int`, but what if the value is...
Reasons for dropping the proposed Attributes version of annotating code (see example below): - Not supported and a perfectly acceptable alternative exists (docblocks) - Would require static analysis tool authors...
Hi, Looks like you've put in a lot of effort on this :+1: I've had roughly the same thoughts occur to me about a month ago and I opened a...