Commit Graph
719 Commits
Author SHA1 Message Date
Viktor Szépe ab86695010 Fix typos 2024-05-21 06:10:59 +00:00
Jaap van Otterdijk 9d07b3f7fd Merge pull request #370 from phpDocumentor/retry-parser-docblocs
Fix docblock tag descriptions
2024-05-21 07:55:05 +02:00
Jaapio 8c422ab43b Fix docblock tag descriptions
Newlines and whitespaces were not handled as before. This caused
issues for some users because our indent-recuction was broken.
The cause seems to be an upstream issue in phpstan parser which
is not resolved yet. But this work around post processing the tokens
helps us to make it work as before.
2024-05-21 07:50:53 +02:00
Jaap van Otterdijk 88a07d2628 Merge pull request #367 from phpDocumentor/fix/description-regression
Bugfix: resolve issue with multiline descriptions
2024-05-08 20:52:15 +02:00
Jaapio 518be131c0 Bugfix: resolve issue with multiline descriptions
The phpstan parser is not consuming the full description when parsing
docblocks with a more complex description. For them it's mostlikely not an
issue as phpstan doesn't use the descriptions. But it will also parse
the descriptions into unexpected tags. This could be an advantage but is
not according to the phpdoc spec.

Our own tokenizer is already tokenizing the docblocks into the correct parts.
So all we needed to do is assume all remaining tokens in the phpstan ast belong
to the description. From there our own code is able to handle this as before in
v5.3.

fixes #365
2024-05-08 20:49:40 +02:00
Jaap van Otterdijk 2f7b34c2ee Merge pull request #366 from phpDocumentor/dependabot/github_actions/phpDocumentor/dot-github-0.6
Bump phpDocumentor/.github from 0.5.0 to 0.6
2024-05-07 07:11:38 +02:00
dependabot[bot] a3fc14103f Bump phpDocumentor/.github from 0.5.0 to 0.6
Bumps [phpDocumentor/.github](https://github.com/phpdocumentor/.github) from 0.5.0 to 0.6.
- [Release notes](https://github.com/phpdocumentor/.github/releases)
- [Commits](https://github.com/phpdocumentor/.github/compare/v0.5.0...v0.6)

---
updated-dependencies:
- dependency-name: phpDocumentor/.github
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-04-15 10:33:49 +00:00
Jaap van Otterdijk 298d2febfe Merge pull request #364 from phpDocumentor/fix/catch-invalid-type-creation
Added test for regression on invalid types
2024-04-09 23:13:58 +02:00
Jaapio 64e172d8ae Added test for regression on invalid types 2024-04-09 23:09:05 +02:00
Jaapio 08acd34f7e Add test for constant references. 2024-04-08 22:15:57 +02:00
Jaap van Otterdijk 67a55cc31d Merge pull request #363 from phpDocumentor/fix/malformed-type-definitions
Be more strict about type definitions on param
2024-04-08 21:44:59 +02:00
Jaapio edd5f67143 Be more strict about type definitions on param
Throw on invalid type definitions and unexpected type definitions.
Not all types resolved by phpstan's parser are valid for docblocks,
they might in a more complex type system but I do not see how these
types would ever apply to param tags.
2024-04-08 21:38:01 +02:00
Jaapio f359e4f8ef Fix code style 2024-03-20 22:40:18 +01:00
Jaapio 7b2f618fe1 Add test for string value params
shows the correct behavior of #348

fixes #348
2024-03-20 22:16:52 +01:00
Jaap van Otterdijk c9b9e93018 Merge pull request #360 from phpDocumentor/fix/typeless_param
Add typeless parameter support.
2024-03-20 22:15:57 +01:00
Jaapio d3cbc396a9 Add extra deprecation 2024-03-20 22:07:56 +01:00
Jaapio fc9a2339f2 Implement fallback option for params without variable 2024-03-20 21:57:07 +01:00
Jaapio 98566f2504 Add typeless parameter support. 2024-03-12 22:49:26 +01:00
Jaapio 2b309a247d Fix ci script typo 2024-03-12 22:45:15 +01:00
Jaap van Otterdijk eb008b75d8 Merge pull request #359 from phpDocumentor/dependabot/github_actions/phpDocumentor/dot-github-0.5.0
Bump phpDocumentor/.github from 0.3.0 to 0.5.0
2024-03-12 22:41:56 +01:00
dependabot[bot] ab337bf6a5 Bump phpDocumentor/.github from 0.3.0 to 0.5.0
Bumps [phpDocumentor/.github](https://github.com/phpdocumentor/.github) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/phpdocumentor/.github/releases)
- [Commits](https://github.com/phpdocumentor/.github/compare/v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: phpDocumentor/.github
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-03-12 21:38:37 +00:00
Jaapio c6d49fc451 Fix code style and bump to php 7.4 2024-03-12 22:28:53 +01:00
Jaap van Otterdijk 1c6b5465fa Merge pull request #357 from AydinHassan/fix-description-formatting-with-escaping
Fix rendering a description when it contains escaped chars and no tags
2024-03-12 22:17:14 +01:00
Jaap van Otterdijk 0b48e261e0 Bump to stable type resolver 2024-01-26 21:33:24 +01:00
Jaap van Otterdijk c86c8d449b Merge pull request #356 from sergiy-petrov/sergiy-petrov-patch-1
Test against php 8.3
2023-10-13 08:34:03 +02:00
Aydin Hassan ae20798fde Fix rendering a description when it contains escaped characters and no tags 2023-10-11 14:57:53 +02:00
Serhii Petrov 1286851b07 Test against php 8.3 2023-10-04 17:06:07 +03:00
Jaap van Otterdijk 7b21721772 Merge pull request #350 from phpDocumentor/dependabot/github_actions/phpDocumentor/dot-github-0.3.0
Bump phpDocumentor/.github from 0.1.0 to 0.3.0
2023-03-12 11:50:44 +01:00
dependabot[bot] c341c1dbc2 Bump phpDocumentor/.github from 0.1.0 to 0.3.0
Bumps phpDocumentor/.github from 0.1.0 to 0.3.0.

---
updated-dependencies:
- dependency-name: phpDocumentor/.github
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-03-06 10:56:30 +00:00
Jaapio 566af9fb94 Bump type resolver 2022-11-19 21:28:46 +01:00
Jaapio 29e383a759 Fix issue with missing registered factory 2022-11-14 22:00:05 +01:00
Jaap van Otterdijk ec81b5479a Merge pull request #344 from williamdes/gitattributes-update
Update .gitattributes
2022-11-14 08:58:30 +01:00
William Desportes e2825e04af Update .gitattributes 2022-11-12 12:59:22 +01:00
Jaap van Otterdijk b5dc333089 Merge pull request #343 from phpDocumentor/poc-phpstan-integration
PhpStan based tag parsing
2022-11-11 15:54:50 +01:00
Jaapio 1f95f3b735 Codestyle fixes and static analysis 2022-11-11 14:24:45 +01:00
Jaapio 6a92bc3ce9 Remove type logic from this package 2022-11-11 12:30:14 +01:00
Jaapio d6e90a3238 Add callable parameter support 2022-11-04 15:43:05 +01:00
Jaapio 50bf16734e Add support for constant types.
phpstan supports contant definitions and expressions to
link to constants.
2022-11-04 11:21:53 +01:00
Jaapio 8d57d3da2d Add deprecation to getArguments 2022-10-28 22:43:02 +02:00
Jaapio 81553b535f Add default types to method tag arguments 2022-10-28 22:37:28 +02:00
Jaapio e4ac07bc40 Add method support 2022-10-28 22:25:08 +02:00
Jaapio cfe9845260 Add property support 2022-10-28 21:07:34 +02:00
Jaapio 1dd491c8ec Add return tag factory 2022-10-28 16:47:01 +02:00
Jaapio b12a33921b Add deprecations 2022-10-28 16:41:00 +02:00
Jaapio 25d696587f Cleanup and var implementation 2022-10-28 16:27:10 +02:00
Jaapio b66b6dc644 Fix some php8+ issues 2022-10-28 14:54:08 +02:00
Jaapio c6f6e2d523 Improve naming for tag factory 2022-10-28 14:39:55 +02:00
Jaapio ece4f5ab18 Introduce a Simple implementation of the TagFactory interface
Less complex interface to implement makes it easier to implement tag factories as they
are part of the new behavior of the StandardTagFactory.
2022-10-28 14:37:01 +02:00
Jaapio d6c050a533 WIP 2022-10-28 14:05:33 +02:00
Jaapio 7192e67cfa First POC steps 2022-10-14 15:26:54 +02:00