Commit 81abd8d
committed
Allow gen_stub.php to parse and ignore extended docblock types
Extended docblock types, according to psalm or phpstan conventions may include array shapes, callable signatures etc.. These are now ignored by ignoring any nested parenthesized expression (followed by optional :type) at the end of the type.1 parent edacfbd commit 81abd8d
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3185 | 3185 | | |
3186 | 3186 | | |
3187 | 3187 | | |
3188 | | - | |
| 3188 | + | |
3189 | 3189 | | |
3190 | 3190 | | |
3191 | 3191 | | |
| |||
3206 | 3206 | | |
3207 | 3207 | | |
3208 | 3208 | | |
3209 | | - | |
| 3209 | + | |
| 3210 | + | |
3210 | 3211 | | |
3211 | | - | |
| 3212 | + | |
3212 | 3213 | | |
3213 | 3214 | | |
3214 | | - | |
| 3215 | + | |
3215 | 3216 | | |
3216 | 3217 | | |
3217 | 3218 | | |
3218 | | - | |
| 3219 | + | |
3219 | 3220 | | |
3220 | 3221 | | |
3221 | 3222 | | |
| |||
0 commit comments