Commit Graph

49 Commits

Author SHA1 Message Date
Ondrej Mirtes
d26926e2ac
Fix build 2021-09-16 22:35:29 +02:00
Jordi Boggiano
605e3697d7 Fix wildcard parsing to end if a space follows, fixes phpstan/phpstan#5628 2021-09-16 22:28:27 +02:00
Vincent Langlet
d622b7c550 Add support for reference in phpdoc 2021-09-16 22:27:44 +02:00
Jiří Pudil
e352d065af type aliases: detect unsupported targets of type alias imports on parsing level 2021-04-03 16:46:19 +02:00
Ondrej Mirtes
2269e47626
Catch parse exception when consuming TOKEN_CLOSE_PHPDOC 2021-03-22 18:32:47 +01:00
Jaroslav Hanslík
cf4fc7d2ae
Fixed "Undefined array key -1" 2021-03-19 11:54:14 +01:00
Jan Tvrdik
b451b2f27a Preserve whitespace formatting of text nodes 2021-03-15 09:55:35 +01:00
Jiří Pudil
2e17e4a907 type aliases: support @phpstan-import-type and @psalm-import-type tags 2021-02-28 15:30:10 +01:00
Jiří Pudil
2d862ef746 type aliases: support @phpstan-type and @psalm-type tags 2021-02-28 15:30:10 +01:00
Sebastian Schreiber
2ce4c66233
[TASK] Add testcase for docblock with number (#61)
Relates: #59
2021-02-19 12:57:27 +01:00
Jaroslav Hanslík
1948aa842a Fixed parsing description started with HTML tag 2020-06-10 07:04:41 +02:00
Andreas Frömer
44500ca1b7 Add support for trailing comma 2020-05-06 08:52:35 +02:00
Andreas Frömer
9efbbb656a Add possibility for leading comma 2020-05-06 08:52:35 +02:00
Andreas Frömer
ba7df7e621 Add test for docblock parsing 2020-05-06 08:52:35 +02:00
Ondrej Mirtes
7093385390
Fix CS 2020-05-04 22:59:45 +02:00
Ondrej Mirtes
d840b6956b
Fix parsing const fetches with wildcard in complex types 2020-05-04 22:48:07 +02:00
Ondrej Mirtes
d4c4cd3cae
Test parseTagValue() with ConstTypeNode 2020-05-04 11:11:57 +02:00
Ondrej Mirtes
956e7215c7
Support for parsing @mixin Type [description] 2020-05-02 09:04:38 +02:00
Ondrej Mirtes
d60ff778be
Support ConstExprNode as type 2020-04-30 15:52:09 +02:00
Ondrej Mirtes
48f94ddb9b
Fix build 2020-02-27 03:29:44 +01:00
Ondrej Mirtes
e2b89c5119
Some extra tests for callable syntax 2020-02-27 02:26:54 +01:00
Ondrej Mirtes
a6d1352464
Fix @var tag with $this 2019-12-13 13:03:22 +01:00
Ondrej Mirtes
0331e880c0
Reserve @use for generic traits instead of @uses (which already has meaning in PHP projects) 2019-12-05 21:43:52 +01:00
Ondrej Mirtes
62c6de624f
@template T as bound 2019-11-18 23:11:38 +01:00
Arnaud Le Blanc
3edb51540b Add @template-covariant support 2019-11-07 10:39:17 +01:00
Jan Tvrdik
b3040ade88 TemplateTagValueNode: $bound is nullable 2019-10-06 13:28:39 +02:00
Ondrej Mirtes
3e956143ed
Support class-string 2019-09-25 14:33:43 +02:00
Arnaud Le Blanc
14346cb8b0 Support @extends, @implements, @uses 2019-07-16 12:48:12 +02:00
Matt Glaman
ab518a5fc8 Fix skipped new lines 2019-05-28 13:40:00 +02:00
Matt Glaman
13d62b8980 Use "\n" 2019-05-28 13:40:00 +02:00
Matt Glaman
671e1a2060 Fix and remove heredoc 2019-05-28 13:40:00 +02:00
Matt Glaman
16cfaee78c Add a real world example 2019-05-28 13:40:00 +02:00
Matt Glaman
21b93d83c8 Support multiple line descriptions for all tags 2019-05-28 13:40:00 +02:00
Matt Glaman
deaac7cd4b Combine multiple line deprecation messages 2019-05-28 13:40:00 +02:00
Arnaud Le Blanc
847540a54b Support @template tag 2019-05-21 18:44:01 +02:00
Ondrej Mirtes
9558a70daa
Description is required (but might be empty) 2019-04-23 21:35:00 +02:00
Matt Glaman
7b3174616b
Support deprecated tags 2019-04-23 21:28:36 +02:00
Ondrej Mirtes
a3dbd6c257
Updated coding standard 2019-04-23 21:27:03 +02:00
Alexey Egorov
341272afa0 PhpDocParserTest: fix wrong PhpDoc annotation (#17) 2018-08-09 13:08:42 +02:00
Jan Tvrdik
044411a92d TypeParser: add recovery from failure to parse callable type 2018-04-25 10:39:58 +02:00
Jan Tvrdik
46fef4d36b fix compatibility with PHP 7.0 2017-12-16 19:32:10 +01:00
Jan Tvrdik
2ece33eb38 drop support for @method tag without '()' (real-world usage is 0.178 %) 2017-12-16 19:21:20 +01:00
Jan Tvrdik
77302e9f47 fix parsing non-static @method annotation returning static type 2017-12-16 16:32:26 +01:00
Jan Tvrdik
36e225fe85 improve tests 2017-12-16 16:19:04 +01:00
Jan Tvrdik
26f3112958 PhpDocParser: tags must be at the beginning of the line 2017-12-03 14:44:57 +01:00
Jan Tvrdik
08d714b2f0 simplify and improve whitespace handling 2017-11-22 11:46:07 +01:00
Jan Tvrdik
4e272700b3 PhpDocParser: support variadic parameters in @param tag 2017-11-19 18:08:10 +01:00
Jan Tvrdik
597aa4da36 drop support for @param annotation without parameter name 2017-11-19 15:52:40 +01:00
Jan Tvrdik
1d80cde655 add tests 2017-11-19 10:40:12 +01:00