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
Mike van Riel
9270140b94
Merge pull request #75 from hboomsma/feature/php71_compat
...
Feature/php71 compat
2016-06-10 11:48:41 +02:00
Hidde Boomsma
02fa9f585e
Void is a reserved keyword in PHP7.1.
...
Running the unit tests with php nightly exposed the bug:
Fatal error: Cannot use phpDocumentor\Reflection\Types\Void as Void
because 'Void' is a special class name in
/home/travis/build/hboomsma/ReflectionDocBlock/tests/unit/DocBlock/Tags/MethodTest.php
on line 25
2016-06-10 11:10:02 +02:00
Sullivan SENECHAL
c8bfd60f52
Fix missing Example::__toString method
...
This method is required by the Tag interface.
2016-06-09 10:39:27 +02:00
Mike van Riel
45ada3e3fd
Merge pull request #73 from hboomsma/feature/typed-array
...
Allow typed arrays in @method annotation.
2016-06-06 08:44:13 +02:00
Mike van Riel
9a0bd76f6f
Merge pull request #72 from fabiang/fix-missing-parenthesis
...
Fix method name is empty when parenthesis is missing in @method
2016-06-06 08:41:09 +02:00
Hidde Boomsma
10c99960dc
Allow typed arrays in @method annotation.
...
Since the type resolver has support for typed arrays,
I allowed the syntax for the @method annotation.
In effect you can now annotate magic methods like:
@method Object[] myMethod($arg1, $arg2)
@method int[] myOtherMethod()
2016-04-07 15:42:51 +02:00
Mike van Riel
52723f0fb8
Add aliases for Context class because newer phpunit versions have a global Context class
2016-02-26 21:44:16 +01:00
Fabian Grutschus
678cf682bf
Fix method name is empty when parenthesis is missing in @method
2016-02-26 17:10:44 +01:00
Jaapio
8d24ce351f
fix type mapping for return tag
2015-07-05 11:30:12 +02:00
Mike van Riel
216cf0025f
Add example on writing your own Tag and prepare for TagFactory objects
2015-06-28 11:56:16 +02:00
Mike van Riel
a6ffa93e28
Add example and functional test for reconstituting a DocBlock
2015-06-27 16:47:47 +02:00
Mike van Riel
1b5279c777
Add tests for StandardTagFactory and adjust for found bugs
2015-06-27 15:53:47 +02:00
Mike van Riel
19c75b3950
Write tests for DescriptionFactory and adjust components for minor bugs that were found
2015-06-26 12:16:45 +02:00
Mike van Riel
50b104f2c0
Add tests for DocBlockFactory and extract interface
2015-06-26 08:59:00 +02:00
Mike van Riel
de7bc574ea
Refactored method tag and added test
2015-06-23 08:28:00 +02:00
Mike van Riel
3b060b555e
Refactored the source tag and written test
2015-06-22 08:12:13 +02:00
Mike van Riel
d29061ea4d
Rewritten Since tag and added test
2015-06-22 07:03:18 +02:00
Mike van Riel
01ddd0ae64
Rewritten Version tag and added test
2015-06-22 07:00:31 +02:00
Mike van Riel
c27aeede5d
Rewritten Var tag and added test
2015-06-22 06:57:24 +02:00
Mike van Riel
2bab7d9c1f
Refactored Uses tag and written test
2015-06-22 06:52:05 +02:00
Mike van Riel
6b92695a71
Refactored throws tag
2015-06-22 06:49:41 +02:00
Mike van Riel
447acda736
Written unit tests for See tag and made it more solid
2015-06-22 06:42:11 +02:00
Mike van Riel
255bc6ffda
Written unit tests for return tag
2015-06-22 06:09:54 +02:00
Mike van Riel
75bb275a99
Fixed build fail due to replaced class name
2015-06-21 08:56:53 +02:00
Mike van Riel
db3f56cfff
Refactored PropertyRead and PropertyWrite tags and added tests
2015-06-21 08:53:18 +02:00
Mike van Riel
a7a4d3ff69
Rewritten Property tag and added test
2015-06-21 08:47:34 +02:00
Mike van Riel
d1f4ee3c03
Written test for Param tag
2015-06-21 08:38:48 +02:00
Mike van Riel
0c63d0ae5b
Rename Other tag class to Generic and write test
2015-06-15 07:04:42 +02:00
Mike van Riel
4b4fc8fdf6
Write test for Link tag
2015-06-15 06:47:27 +02:00
Mike van Riel
7ade5b89fc
Write tests for Deprecated tag
2015-06-14 09:11:50 +02:00
Mike van Riel
70eadb02df
Add tests for covers tag
2015-06-14 08:50:52 +02:00