Skip to content

Commit ea18b1a

Browse files
committed
Review PHPDoc classes
- Move DocBlock-related regular expressions from `Regex` to `PHPDocRegex` - Move `normaliseType()` from `AbstractTag` to `PHPDoc` - Move tag classes to `PHPDoc\Tag`, then rename and make them immutable - Detect parameters passed by reference - Improve parsing, e.g. when invalid whitespace is added between tokens - Fail with an exception when a DocBlock cannot be parsed - Remove `$legacyNullable` support - Fix issue where `PHPDoc::$Summary` may not be `null` when a DocBlock has no summary - Fix issue where `/***/` is not recognised as an invalid DocBlock
1 parent 4cf8f3a commit ea18b1a

File tree

15 files changed

+1176
-787
lines changed

15 files changed

+1176
-787
lines changed

phpstan-baseline-7.4.neon

Lines changed: 8 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline-8.3.neon

Lines changed: 8 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)