Commit Graph
197 Commits
Author SHA1 Message Date
Chuck Burgess fb948e8a52 regex fix for ellipsis in summary text; 2018-01-07 08:51:10 -06:00
TomasVotruba 1c8f795c0e apply coding standard to code 2018-01-02 13:40:57 +01:00
Gabriel Caruso a1e6160b99 Welcome 2018 🎉 2018-01-02 04:52:36 -02:00
Tomáš Votruba bab88701ea Add PHPStan and bump to max level (#139)
* composer: put require- together

* add phpstan

* add phpstan to travis

* phpstan fixes

* phpstan fixes

* phpstan fixes

* drop null defaults since every property is null by default

* DescriptionFactory: fix parse nullable type

* travis: add phpstan max

* travis: fix phpstan config
2017-12-02 19:12:29 +01:00
TomasVotruba c19b4d170c [cs] remove value-less docblocks 2017-11-30 10:27:01 +01:00
TomasVotruba c664d2866d fix cs 2017-11-30 10:27:01 +01:00
TomasVotruba f8d4fda4f3 fix cs 2017-11-30 10:27:01 +01:00
TomasVotruba 51122cfa1d improve comment 2017-11-30 10:27:01 +01:00
TomasVotruba 082c811880 remove unused docblocks 2017-11-30 10:27:01 +01:00
TomasVotruba 4a9675841b add PHP 7.1 typehints 2017-11-30 10:27:01 +01:00
TomasVotruba 0bac84ee68 remove unused docblocks 2017-11-30 10:27:01 +01:00
TomasVotruba 154c85b680 remove unused namespaces 2017-11-30 10:27:01 +01:00
TomasVotruba b2e816c8ad fix tests 2017-11-30 10:27:01 +01:00
TomasVotruba 5e1bad3628 drop asserts where not needed 2017-11-30 10:27:01 +01:00
TomasVotruba 193731a153 remove tests and validation that are now covered by typehints 2017-11-30 10:27:01 +01:00
TomasVotruba d874c4d14a add strict_types and typehints 2017-11-30 10:27:01 +01:00
TomasVotruba 94fd000123 fix cs 2017-11-30 08:14:17 +01:00
TomasVotruba 763f26e8db fix extra space after tag removal 2017-11-30 08:14:17 +01:00
Tomáš Votruba 66465776cf Example: add missing typehtins
This package actually fails on checking itself here
2017-11-27 18:38:31 +01:00
TomasVotruba 5ff9ca38c5 [cs] finalize, spaces, concat and strict comparison 2017-11-12 21:23:54 +01:00
TomasVotruba a872e515bb [cs] add and apply psr2 2017-11-12 21:23:54 +01:00
TomasVotruba 771a21db91 [cs] use short arrays, order imports 2017-11-12 21:23:54 +01:00
TomasVotruba c9c580e482 DocBlock: move public method up 2017-11-10 23:53:51 +01:00
Tomáš Votruba c62f4592a0 DocBlock: add removeTag() method 2017-11-10 23:53:51 +01:00
Jaapio c5545d1519 Adds sort to order expected keys
Without this sort the order of argument name and type matter. But
we accually don't care about the order. Only name and type are allowed
but the order doesn't matter.
2017-09-11 19:56:35 +02:00
Bozhidar Hristov b2f473ed77 Update Description.php
Getter for `tags`.
2017-09-11 19:53:47 +02:00
Jaapio 2d3d238c43 Adds name to example tag 2017-08-30 20:51:59 +02:00
Jaapio 1d3a5e8585 Fixes namespace error in ExampleFinder 2017-08-30 20:51:28 +02:00
Jaapio 86e24012a3 Merge remote-tracking branch 'warxcell/empty_var_name' 2017-08-29 21:37:41 +02:00
Bozhidar Hristov b11ada456f Fixes https://github.com/phpDocumentor/ReflectionDocBlock/issues/117 2017-08-28 09:51:41 +03:00
Jaapio c054cfdfe1 Fixes implementation of Example tag 2017-08-18 23:00:12 +02:00
Roberto Espinoza a8d791f8c9 Check tag body has a value before trying to access it as an string array 2017-08-08 08:43:50 +02:00
Roberto Espinoza 4aada1f93c Check tag body has a value before trying to access it as an string array 2017-08-08 08:39:58 +02:00
Jaapio 2b49b7962a Allow see tag to url
The see tag allows Fqsen and uri's. But in the current implementation
only Fqsen where allowed. This wrapps the uri and Fqsen in an uniform class
to be able address them in the same way.

Fixes #78
2017-08-04 23:11:57 +02:00
Jaapio 183824db76 Restores future support for annotations
In #89 the regex to parse tags was to strict. The first character after a tag
had to be a single string. Annotations typically start with a parentheses. Only character not
allowed after a tag is a [.
2017-08-04 22:55:59 +02:00
Jaapio 46f7e8bb07 Allows usage of compound array types
fixes #50
2017-07-15 13:38:20 +02:00
Jaapio b453d2c304 Allow omitting method return type
Support for `@method myMethod()` was missing but according to the
docs of phpdocumentor this is possible.
2017-07-15 13:38:20 +02:00
Jaapio 382d7cd6f3 Removes space after tag without description
fixes #86
2017-07-14 18:33:36 +02:00
Jan Schneider 2318e5eb97 Add unit test. 2017-06-04 21:54:23 +02:00
Jan Schneider 47ace60533 Add a tag formatter that aligns all tag values. 2017-06-04 21:54:23 +02:00
Jan Schneider d52fdc6640 Allow to specify a custom tag formatter. 2017-06-04 21:54:23 +02:00
Christoph Harms-Ensink a41a31f8c8 UPDATE Method.php, MethodTest.php
- try to make the if-condition php 7.2.0-compatible
- correct docBlock for the test method
2017-05-29 14:21:25 +02:00
Christoph Harms-Ensink e9454d844d UPDATE Method.php, MethodTest.php
- Modify the RegEx, so that an annotation like `@method static $this myMethod()` is parsed correctly
- Write a Unittest for that usecase
2017-05-29 14:21:25 +02:00
Jan Schneider 8ba65bc4f0 Don't output author email, if it doesn't exist, and add missing space. 2017-05-29 14:16:37 +02:00
Jordi Boggiano 248e5f69dc Fix regex for tag name extraction and restore disabled test 2016-11-14 19:33:41 +01:00
Mike van Riel 8331b5efe8 Merge pull request #79 from Ener-Getick/patch-1
Fix an unexpected behaviour with @deprecated tags
2016-09-30 09:12:33 +02:00
Mike van Riel f574de9fcf Merge pull request #82 from kelunik/issue-81
Escape literal "%" because of vsprintf
2016-09-30 09:11:50 +02:00
Jordi Boggiano 019848728e Add support for rest argument notation 2016-09-28 18:42:19 +02:00
Niklas Keller 4e19318f81 Escape literal "%" because of vsprintf
Fixes #81.
2016-08-23 08:13:57 +02:00
Guilhem N 1be8bc1738 Fix an unexpected behaviour with @deprecated tags 2016-07-18 15:04:51 +02:00