Commit Graph
326 Commits
Author SHA1 Message Date
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 3c8d2425b5 Drop hhvm support 2017-08-04 23:25:06 +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 51911abd63 Stop building for php 5 2017-08-04 23:11:13 +02:00
Jaapio 007a536bc5 Upgrades type-resolver to 0.4.0
Type resolver has renamed some classes.
Dropping php 5.5 support
2017-08-04 23:11:13 +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 48d3720bf4 Downgrade phpdocumentor/type-resolver to 0.3
In order to restore a bc break made in 3.2.0 I downgraded the
type-resolver. This makes the version less compatible with php 7.1
But will help our users to upgrade.
2017-08-04 22:52:58 +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 8ba1708217 Updates phpunit dependencies 2017-07-15 13:30:40 +02:00
Jaapio 382d7cd6f3 Removes space after tag without description
fixes #86
2017-07-14 18:33:36 +02:00
Jaapio 7c33776cd8 Upgrade typeresolver to 0.4 2017-07-14 16:40:01 +02:00
Aleksei Akireikin 3048f961a3 Unit tests fixed 2017-07-14 16:20:14 +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
Tomáš Votruba d455663710 travis: add PHP 7.1 2017-06-04 21:52:39 +02:00
Jon Dufresne 7c73155197 Add gitattributes file
Used to allow composer to ignore tests and other development files in
distribution of releases.
2017-05-29 14:23:54 +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 c14a4abfd7 Add test for empty email address. 2017-05-29 14:16:37 +02:00
Jan Schneider f0821ad88f Missed this test. 2017-05-29 14:16:37 +02:00
Jan Schneider a5fb25393a Update tests. 2017-05-29 14:16:37 +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
Jaap van Otterdijk 1d3dd12a7f Merge pull request #89 from Seldaek/fix_regex
Fix regex for tag name extraction and restore disabled test
2017-04-24 22:45:54 +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
Mike van Riel e4a6e492f3 Merge pull request #84 from Seldaek/support_rest_arg
Add support for rest argument notation
2016-09-30 09:11:17 +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
Mike van Riel ea48fd2c79 Merge pull request #77 from Soullivaneuh/example-to-string
Fix missing Example::__toString method
2016-06-10 09:04:47 +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
Hidde Boomsma 018dc90abb build php nightly 2016-06-08 09:33:05 +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
Mike van Riel 332c96dab8 Remove 3.0.x alias from composer.json before tagging 3.0.0 2016-01-28 13:45:51 +01:00
Mike van Riel fc4fe7a67b Merge branch 'master' of github.com:phpDocumentor/ReflectionDocBlock 2016-01-28 13:29:54 +01:00
Mike van Riel 1900685cf9 Update README for v3 release 2016-01-28 13:29:32 +01:00
Mike van Riel ba00c4ba78 Merge pull request #68 from willemstuursma/patch-1
Add mandatory description element to composer.json
2015-12-24 07:44:45 +01:00
Willem Stuursma 607a0d60d9 Add mandatory description element to composer.json
composer validate gives the following warning: 

````
phpdocumentor/reflection-docblock is valid for simple usage with composer but has
strict errors that make it unable to be published as a package:
description : The property description is required
````
2015-12-22 13:52:16 +01:00
Mike van Riel 82f9aba5a5 Merge pull request #66 from jaapio/feature/filterNullTags
Allow only tags in Docblock argument
2015-10-26 15:52:52 +01:00
Mike van Riel 28632e065c Merge pull request #65 from jaapio/feature/versionBumpTypeResolver
Version bump phpdocumentor/type-resolver
2015-10-26 15:52:38 +01:00
Jaapio e516af3a1b Allow only tags in Docblock argument
The array of tags in the docblock constructor should only contain tags.
Some of the factory methods of the tags are returning a null when the tag could not be created.
This causes issues during parsing. By filtering these null values in the factory this use is resolved.
2015-10-26 15:45:03 +01:00