Commit Graph

273 Commits

Author SHA1 Message Date
Alexey Egorov
341272afa0 PhpDocParserTest: fix wrong PhpDoc annotation (#17) 2018-08-09 13:08:42 +02:00
Ondrej Mirtes
ed32233621
minimum-stability dev is not necessary 2018-06-20 19:48:01 +02: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
0a3911f7a6 composer: require phpstan 0.10-dev 2018-04-30 09:08:38 +02:00
Jan Tvrdik
9b7d0027f9 composer: change branch-alias for master to 0.3-dev 2018-04-30 09:00:52 +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
Filippo Tessarotto
3ff33ac44c gitattributes: add dev files to export-ignore 2018-04-19 17:30:56 +02:00
Jan Tvrdik
7d6b297564 add FuzzyTest 2018-04-12 16:23:05 +02:00
Jan Tvrdik
958806cdce fix php 7.0 compatibility 2018-04-12 16:16:37 +02:00
Jan Tvrdik
f69d70526a ConstExprParserTest: improve readability 2018-04-12 11:49:12 +02:00
Jan Tvrdik
7ab7c78f55 add ConstantExpr grammar 2018-03-20 14:09:22 +01:00
Jan Tvrdik
aaa6ac83d1 finalize TypeParser grammar 2018-03-20 14:09:22 +01:00
Jan Tvrdik
3dc77d7af4 *.abnf files must use CRLF line-endings 2018-03-20 14:09:22 +01: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
97be1de71b composer: require phpstan/phpstan-shim instead of phpstan/phpstan 2018-03-20 14:09:21 +01:00
Jan Tvrdik
84704c620f composer: change dev-master branch-alias to 0.2-dev 2018-03-20 13:59:42 +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
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
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
36e225fe85 improve tests 2017-12-16 16:19:04 +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
9232f3f4b0 composer: add branch-alias 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
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
c7f7f7bc74 ParserException: improve message formatting 2017-11-19 12:32:51 +01:00
Jan Tvrdik
70f27a2d5e travis: simplify build matrix 2017-11-19 10:40:37 +01:00
Jan Tvrdik
ee0a77bc99 composer: add description 2017-11-19 10:40:13 +01:00
Jan Tvrdik
fd48a33359 TokenIterator: fix possible undefined index in consumeTokenType 2017-11-19 10:40:12 +01:00
Jan Tvrdik
1d80cde655 add tests 2017-11-19 10:40:12 +01:00
Jan Tvrdik
b316443d88 PhpDocParser: change whitespace handling 2017-11-19 10:40:12 +01:00
Jan Tvrdik
2e73ac5f3d unify coding style with phpstan (2) 2017-11-19 10:40:12 +01:00
Jan Tvrdik
687d00224c PhpDocParser: disallow few tokens at the beginning of some descriptions 2017-11-19 10:40:12 +01:00
Jan Tvrdik
5fa9b5a5b2 ParserException: accept error related data instead of message 2017-11-19 10:40:12 +01:00
Jan Tvrdik
17a23f62d7 PhpDocParser: merge adjacent text nodes 2017-11-19 10:40:11 +01:00
Jan Tvrdik
95787df9bf ConstExprParser: fix building ConstFetchNode 2017-11-19 10:40:11 +01:00
Jan Tvrdik
97250e6dcc unify coding style with phpstan 2017-11-19 10:40:09 +01:00