Commit Graph

82 Commits

Author SHA1 Message Date
Ondrej Mirtes
51a9bf6f56
More understandable parser error message 2019-11-21 21:52:51 +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
Max Loeb
9186b5f8aa lint 2019-10-26 21:40:39 +02:00
Max Loeb
8a1b0c7090 commas on next line 2019-10-26 21:40:39 +02:00
Max Loeb
e81bfd8679 support trailing commas 2019-10-26 21:40:39 +02:00
Max Loeb
cbcf081a8c explicit null check 2019-10-26 21:40:39 +02:00
Max Loeb
15677da35a fix unrelated phpstan error 2019-10-26 21:40:39 +02:00
Max Loeb
c8ffa3e787 consume newlines 2019-10-26 21:40:39 +02:00
Jan Tvrdik
b23fbb14d5 PhpDocParser: support phpstan and psalm prefixes 2019-10-06 14:45:32 +02: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
Ondrej Mirtes
e65b5533c7
Strict rules 2019-09-16 21:24:59 +02:00
Ondrej Mirtes
970951eef0
Issue workaround 2019-09-16 21:24:59 +02:00
Ondrej Mirtes
2b0db7c2c3
Updated PHPStan 2019-07-16 13:14:05 +02:00
Arnaud Le Blanc
14346cb8b0 Support @extends, @implements, @uses 2019-07-16 12:48:12 +02:00
Arnaud Le Blanc
9b27b84656 Allow only identifiers and integers in keys 2019-06-07 21:13:52 +02:00
Arnaud Le Blanc
1e2a8ece06 Disallow whitespaces between 'array' and '{' 2019-06-07 21:13:52 +02:00
Arnaud Le Blanc
c6ffc4b4f1 Array shapes support 2019-06-07 21:13:52 +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
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
472d3161d2
Missing method getDeprecatedTagValues() 2019-04-23 22:26:19 +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
Jaroslav Hanslík
f5169aba2c ParamTagValueNode: fix phpdoc for $parameterName (#20)
`@param` tag without parameter name is not supported so `$parameterName` cannot be empty string
2019-01-15 10:36:37 +01:00
Ondrej Mirtes
2cc49f47c6
Made PhpDocParser::parseTagValue() public 2019-01-14 13:26:23 +01:00
Ondrej Mirtes
5415ec746c
Fixed potential TypeError 2018-06-20 19:46:45 +02:00
Josef Kříž
850b167f07 PhpDocNode: add getThrowsTagValues() (#12) 2018-05-10 11:23:09 +02:00
Jan Tvrdik
aa22c2f688 fix issues found by phpstan 2018-04-30 12:38:30 +02:00
Jan Tvrdik
f4ff265e2c require PHP 7.1+ 2018-04-30 08:52:35 +02:00
Jan Tvrdik
fdaf1f03e4 Lexer: fix missing label for TOKEN_PHPDOC_EOL 2018-04-30 08:50:57 +02:00
Jan Tvrdik
044411a92d TypeParser: add recovery from failure to parse callable type 2018-04-25 10:39:58 +02:00
Jan Tvrdik
5251b5b4d4 TypeParser: add support for callable types 2018-04-25 10:39:46 +02:00
Jan Tvrdik
e5f9c96665 Lexer: disallow 7F byte in identifiers 2018-03-20 14:09:21 +01:00
Jan Tvrdik
cd11ffb50d ConstExprParser: disallow entirely CRLF characters in strings 2018-03-20 14:09:21 +01:00
Jan Tvrdik
5ba6bd81e5 ConstExprParser: allow integers in bin, oct and hex format 2018-03-20 14:09:21 +01:00
Jan Tvrdik
02f909f134 Lexer: do not use \h as it depends on locale 2018-01-13 19:19:41 +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
4a19e79b31 drop support for @returns tag (real-world usage is 0.031 %) 2017-12-16 16:38:35 +01:00
Jan Tvrdik
77302e9f47 fix parsing non-static @method annotation returning static type 2017-12-16 16:32:26 +01:00
Jan Tvrdik
dd308d8554 TOKEN_OPEN_PHPDOC (/**) must be always followed by whitespace 2017-12-16 16:04:40 +01:00
Jan Tvrdik
f8a1d21be1 add support for @throws tag value parsing 2017-12-16 15:34:23 +01:00
Jan Tvrdik
72864aad33 typo 2017-12-07 17:17:36 +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
Ondřej Mirtes
3fed7e24cb Integrate PHPStan analysis (#1) 2017-11-20 08:05:03 +01:00