Commit Graph
793 Commits
Author SHA1 Message Date
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
dependabot-preview[bot] 43f90ab91c Bump mockery/mockery from 1.3.0 to 1.3.1
Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mockery/mockery/compare/1.3.0...1.3.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-30 09:40:11 +00:00
Mike van Riel c5a39003d5 Fixes #181: Example did not implement interface 2019-12-27 21:42:04 +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 1a5d9a2dbc Add braces support to Property, Property-Read, Property-Write and Var 2019-12-27 21:07:05 +01:00
Mike van Riel bb19583948 Support braces in types for @param 2019-12-27 21:02:14 +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
Jaapio c19ab7ef57 Upgrade phive phpstan:0.12.2 2019-12-20 14:36:14 +01:00
Jaap van Otterdijk d9e1217896 Merge pull request #188 from othercorey/method-arguments
Fixed @method annotations with an empty argument list and description
2019-12-20 14:23:12 +01:00
Corey Taylor 97b796040a Fixed @method annotations with an empty argument list and description 2019-12-19 08:41:51 -06:00
dependabot-preview[bot] 549d235cf4 Bump phpdocumentor/type-resolver from 0.6.2 to 1.0.1
Bumps [phpdocumentor/type-resolver](https://github.com/phpDocumentor/TypeResolver) from 0.6.2 to 1.0.1.
- [Release notes](https://github.com/phpDocumentor/TypeResolver/releases)
- [Commits](https://github.com/phpDocumentor/TypeResolver/compare/0.6.2...1.0.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-17 20:36:15 +00:00
dependabot-preview[bot] 1aef412299 Bump mockery/mockery from 1.1.0 to 1.3.0
Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.1.0 to 1.3.0.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mockery/mockery/compare/1.1.0...1.3.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-13 15:12:00 +00:00
dependabot-preview[bot] 0461e3ca1a Bump doctrine/instantiator from 1.1.0 to 1.3.0
Bumps [doctrine/instantiator](https://github.com/doctrine/instantiator) from 1.1.0 to 1.3.0.
- [Release notes](https://github.com/doctrine/instantiator/releases)
- [Commits](https://github.com/doctrine/instantiator/compare/1.1.0...1.3.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-13 15:02:41 +00:00
Jaapio 79fd4a9475 Allow dependabot automerge 2019-12-13 16:01:35 +01:00
Jaap van Otterdijk 03ddbe014b Merge pull request #179 from phpDocumentor/cleanup
Cleanup
2019-12-13 15:42:32 +01:00
Jaapio 043df2c565 remove bc check for now 2019-12-13 15:31:58 +01:00
Jaapio 0bbc74b119 Remove ci configs to switch to github actions 2019-12-11 09:32:27 +01:00
Jaapio fc2eb2355e Add phpdoc workflow 2019-12-11 09:18:05 +01:00
Jaapio d7d476a5da Bump minimal required php version 2019-12-11 09:13:46 +01:00
Jaapio c14c01875a Make static anlisys pass 2019-12-10 23:46:06 +01:00
Jaapio 09e086ecf1 Cleanup build files 2019-09-26 21:19:59 +02:00
Jaapio 73ea6784b3 Add workflow to ensure checks 2019-09-26 21:11:19 +02:00
Jaapio 50ec1362de Psalm fixes 2019-09-26 21:09:37 +02:00
Jaapio 19a1f3a91f Phpstan to max level 2019-09-20 16:52:17 +02:00
Jaapio aee984014b Apply new code style 2019-09-20 10:54:12 +02:00
Mike van Riel 8fcadfe5f8 No longer bubble tag exceptions to the top
When a tag has an invalid component to it it would cause a whole file to fail
to parse. Instead we should consider invalid tags a nuisance but not worth
breaking the whole parsing over.

In this change I have added a try..catch that will prevent invalid tags from
breaking the whole parsing process.
2019-06-15 22:45:01 +02:00
Jaap van Otterdijk 48351665a8 Merge pull request #167 from michbeck/master
Fix for generic tag description properly parsing 0
2019-04-30 20:01:57 +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
Michael Knappe 095cf6d37a fixed generic tag to parse description with 0 as expected 2019-04-30 13:21:57 +02:00
Jaap van Otterdijk 90ae750874 Merge pull request #161 from andreybolonin/patch-1
add php 7.3 to travis
2018-10-30 09:13:41 +01:00
Andrey Bolonin 6929bd4881 add php 7.3 to travis 2018-10-30 02:05:21 +02:00
Chuck Burgess a29cd5c528 initialize line count to an int; 2018-06-20 09:34:23 -05:00
Chuck Burgess 329341ac93 Merge pull request #157 from ashnazg/ci
use ecs v3.x
2018-06-14 11:15:19 -05:00
Chuck Burgess d31c40a6a1 use ecs v3.x 2018-06-14 11:01:00 -05:00
Chuck Burgess ef73f5cfdb Merge pull request #156 from ashnazg/reflection-needs
bump to next type-resolver alpha
2018-06-14 07:47:29 -05:00
Chuck Burgess 26a37cf245 restore global phpunit 2018-06-14 07:43:12 -05:00
Chuck Burgess 688e9d1e54 update appveyor config format 2018-06-14 07:35:11 -05:00
Chuck Burgess 4b73412a9d bump to next type-resolver alpha 2018-06-14 07:34:33 -05:00
Jaap van Otterdijk 6537078c5e Merge pull request #154 from jakzal/patch-1
Update the branch alias for 5.x releases
2018-04-19 10:00:57 +02:00
Jakub Zalas 9e75264359 Update the branch alias for 5.x releases
It's time to update the branch alias since BC breaking changes were merged and the first 5.0.0-alpha1 release has been made.
2018-04-19 08:58:50 +01:00
Chuck Burgess 1826097368 bump reflection-common 2018-02-14 13:00:58 -06:00
Chuck Burgess 2de1b36556 bump php versions 2018-02-14 08:05:46 -06:00
Chuck Burgess 238565e7a8 limit global phpunit to v6 2018-02-14 08:02:37 -06:00
Chuck Burgess 3eb278bd0e type-resolver update 2018-02-14 07:53:04 -06:00
Chuck Burgess 6946f85e19 Merge pull request #152 from ashnazg/strict
Strict Updates
2018-01-31 14:23:19 -06:00
Chuck Burgess cc0998e471 add self return type; 2018-01-31 08:58:25 -06:00