Lars Moelleken
be6ed8b0d8
add more unit tests and fixed the output
2020-09-02 22:23:55 +02:00
Lars Moelleken
3d38a9c3bb
Param: fix phpdoc with reference hint (code style fixes v2)
2020-08-18 09:53:22 +02:00
Lars Moelleken
443d86e18e
Param: fix phpdoc with reference hint
...
fix issue #251
2020-08-17 23:44:09 +02:00
Jaap van Otterdijk
f3ab30788f
Merge pull request #247 from phpDocumentor/safe_preg_split
...
Introduce safe preg_split
2020-08-15 14:16:28 +02:00
Jaapio
690d9cd45f
Introduce safe preg_split
...
Removes the need for extra assertions which makes the code
more readable, and reduces the overhead of an is_array check.
2020-08-15 14:06:55 +02:00
Jaapio
6ff90eb7bd
Fix issue with modified backtrace
...
php allows the backtrace arguments to be modified via the
backtrace. By using array_map we make sure that we do not overwrite
references.
2020-08-12 18:07:00 +02:00
Jaapio
f0af3b7263
Add more tests
2020-08-12 15:27:12 +02:00
Jaapio
1ac416df3f
Ensure docblock defaults
2020-07-21 10:16:41 +02:00
Jaapio
9781068ce1
Move away from phropecy since it is not php8 ready
2020-07-20 21:20:51 +02:00
Jaapio
70745c7dcb
Bump dependencies
2020-06-27 17:54:35 +02:00
Jaapio
917b6648e6
CSFixes
2020-02-12 20:14:58 +01:00
Jaap van Otterdijk
b21eaf3a01
Merge pull request #201 from orklah/master
...
bump phpstan to master
2020-02-12 19:32:43 +01:00
Remi Collet
e8384e45fa
don't rely on 'args' in trace, not available in 7.4
2020-02-12 13:46:34 +01:00
Mike van Riel
50e77ace68
Change unit testing to match phpDocumentor itself
2020-02-12 08:18:08 +01:00
Daniel Rotter
8727095d6b
Add failing testcase for long method name
2020-02-12 07:28:49 +01:00
Orklah
ada1b6be7f
bump phpstan to master. Fixed ignored errors
2020-02-10 21:41:22 +01:00
Jaapio
a83a19f71b
Fix code style
2020-02-09 10:13:47 +01:00
Jaapio
1e5bd86da1
Fix invalid void type default for arguments
2020-02-09 09:31:53 +01:00
Jaapio
9169749b9e
Improve test descriptions
2020-02-09 09:11:55 +01:00
Jaapio
264bd1fff7
Handle tag specialization correctly
2020-02-09 09:05:22 +01:00
Jaapio
ed7b7919e3
Limit characters after tag name
...
Previously we allowed all characters after a tag name which made
it a bit fuzzy how tags are handled. Psr-5 is more strict about
the characters that are allowed in tags and those that are part of
the body. A tag name can now be followed by `(`, <space> and `{` all
other characters are forbidden. The first character of the body is
not restricted anymore.
fixes #165
2020-02-09 08:52:29 +01:00
Jaapio
cf16f630f2
Fix code style
2020-01-16 09:49:07 +01:00
Jaapio
ce65c06bb6
Fix serialization issue of InvalidTag
2020-01-16 09:38:58 +01:00
Jaapio
bb629f6469
Improvements to code
2020-01-12 13:19:45 +01:00
Jaapio
1b78639b8b
Add testcase for invalid tag creation
2020-01-03 14:06:44 +01:00
Jaapio
bdecc2d3bf
Fix issue when processing invalid tags
...
When invalid tags are processed a null was returned causing all kind
of issues in the normal behavior of this libary. As a solution a generic tag
could be created. But that would just drop the error information in.
Therefore a new tag was introduced, `invalidTag` the tag is just like the
generic tag but does contain the error triggered during the creation of the
tag. Which might help applications like phpdocumentor to display validation issues.
2020-01-03 13:33:06 +01:00
Mike van Riel
b668892da4
Fix tests and linting errors after merging in release 4.x
2019-12-27 21:38:28 +01:00
Mike van Riel
506fd89d43
Move type extraction to base class and re-use in Throws
2019-12-27 20:59:58 +01:00
Mike van Riel
0a9b8ea383
Add extra tests to check for multibyte behaviour
2019-12-27 20:18:40 +01:00
Mike van Riel
19dd184a2b
Support braces in types for @return
...
In this change, I have introduced a miniature automaton-light to parse
the type from the @return body. This will prevent issues with people
using generics and other unsupported forms of types.
This change does _not_ allow for the use of Generics or similar; the
TypeResolver will still fail to resolve this type. This will remove a
breaking issue in consuming applications where a runtime exception used
to be thrown.
Please note that this change is only for @return; other tags still need
to be done. This will resolve issue #186
2019-12-27 20:18:32 +01:00
Corey Taylor
97b796040a
Fixed @method annotations with an empty argument list and description
2019-12-19 08:41:51 -06:00
Jaapio
c14c01875a
Make static anlisys pass
2019-12-10 23:46:06 +01:00
Jaapio
aee984014b
Apply new code style
2019-09-20 10:54:12 +02:00
Michael Knappe
6907decc71
added test for generic tag to parse description with 0 as expected
2019-04-30 13:22:06 +02:00
Chuck Burgess
d9952bd114
initialize variables before include, so that var tag usage is normal
2018-01-29 14:03:51 -06:00
Chuck Burgess
7bd0e7e4a1
extra space
2018-01-07 09:09:21 -06:00
Chuck Burgess
2f482c78b0
add tests for bug #63 ;
2018-01-07 08:50:54 -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
Gabriel Caruso
4ea190884d
Use assertCount ( #140 )
2017-12-07 21:29:55 +01:00
TomasVotruba
7d2174e8f6
use ::class over string
2017-11-30 10:27:01 +01:00
TomasVotruba
f8d4fda4f3
fix cs
2017-11-30 10:27:01 +01:00
TomasVotruba
e9e35284d9
use PHPUnit 6.0 syntax for tests
2017-11-30 10:27:01 +01:00
TomasVotruba
5282c2e9a8
return test code back
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
193731a153
remove tests and validation that are now covered by typehints
2017-11-30 10:27:01 +01:00
TomasVotruba
a1d8751ad6
tests: add strict_types and typehints, remove tests that are now covered by typehints
2017-11-30 10:27:01 +01:00