Commit Graph
755 Commits
Author SHA1 Message Date
Jaapio 6a5a3b7748 Fix codestyle issues 2024-11-04 21:01:58 +01:00
Jaap van Otterdijk 6fc32d3738 Merge pull request #374 from GautierDele/5.x
 method parameter default value rendering
2024-11-04 20:47:47 +01:00
Jaap van Otterdijk c29b3d1935 Merge pull request #378 from phpDocumentor/dependabot/composer/mockery/mockery-1.6.12
Bump mockery/mockery from 1.3.5 to 1.6.12
2024-11-04 19:26:28 +01:00
dependabot[bot] 57b5b4ba2f Bump mockery/mockery from 1.3.5 to 1.6.12
Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.3.5 to 1.6.12.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/1.6.x/CHANGELOG.md)
- [Commits](https://github.com/mockery/mockery/compare/1.3.5...1.6.12)

---
updated-dependencies:
- dependency-name: mockery/mockery
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-11-04 10:42:32 +00:00
Gautier DELEGLISE 1ed543b248 🚨 assure backward compatibility 2024-11-04 08:24:17 +01:00
Gautier DELEGLISE f26d445de6 ♻️ revert get default value to string 2024-11-03 23:28:27 +01:00
Jaap van Otterdijk 8ea94649e7 Merge pull request #375 from phpDocumentor/build-php84
Build on php 8.4
2024-11-03 21:56:20 +01:00
Jaapio f985773245 Apply more strict type checking 2024-11-03 21:54:10 +01:00
Jaapio db271d6f57 Switch to psalm phar 2024-11-03 21:31:28 +01:00
Jaapio d5ffce6dee Build on php 8.4 2024-11-03 21:20:59 +01:00
Gautier DELEGLISE 2b2242d323 🐛 default value from phpstan 2024-11-01 17:33:39 +01:00
Gautier DELEGLISE 54f9b11a4c Update MethodParameterFactory.php 2024-10-31 10:05:00 +01:00
Gautier DELEGLISE 6a623a4829 🚸 code review 2024-10-30 21:49:01 +01:00
Gautier DELEGLISE 93cfc743bd 💚 removed unecessary imports 2024-10-28 10:30:40 +01:00
Gautier DELEGLISE 992c829bad ♻️ cover more default value cases 2024-10-28 10:28:22 +01:00
Gautier DELEGLISE 456d2b0be2 🐛 left side of ?? is not nullable 2024-10-27 12:20:56 +01:00
Gautier DELEGLISE 442a3d1dc8 ♻️ variable might not be defined 2024-10-27 12:17:33 +01:00
Gautier DELEGLISE fde2b5916d method parameter default value rendering 2024-10-26 23:49:53 +02:00
Jaapio 60741fe387 Fix unittests 2024-08-14 22:00:37 +02:00
Jaapio 3f5534f776 Remove abstract factory 2024-08-14 21:57:29 +02:00
Jaapio 06e5db2279 Fix code style issues 2024-08-14 21:52:41 +02:00
Jaap van Otterdijk bd5b5a8c5d Merge pull request #373 from ahjdev/5.x
Add new tags
2024-08-14 21:28:18 +02:00
AhJ 47fea84af1 Add description 2024-07-27 18:07:00 +03:30
AhJ f17d98425c Seprate template-* tags 2024-07-27 18:06:52 +03:30
AhJ f93a6b70aa Register tags 2024-07-24 12:11:24 +03:30
AhJ cca538efed Add TemplateCovariant tag 2024-07-24 12:11:07 +03:30
AhJ 19b5535d39 Clean up 2024-07-24 12:10:58 +03:30
AhJ 3acbe24b17 Add Implements tags 2024-07-24 12:10:38 +03:30
AhJ f387e8faa9 Add Extends tags 2024-07-24 12:10:17 +03:30
AhJ a46da81e77 Add Template tag 2024-07-24 12:09:41 +03:30
AhJ 6908c99a87 Add mixin tag 2024-07-23 18:14:49 +03:30
AhJ a979495847 add doc 2024-07-16 21:25:04 +03:30
AhJ bbb6a02b91 Add implements 2024-07-16 21:19:04 +03:30
Jaap van Otterdijk aa53f8d437 Merge pull request #371 from szepeviktor/typos
Fix typos
2024-05-21 08:14:15 +02:00
Viktor Szépe ab86695010 Fix typos 2024-05-21 06:10:59 +00:00
Jaap van Otterdijk 65a1ca18a3 Merge pull request #368 from phpDocumentor/dependabot/github_actions/phpDocumentor/dot-github-0.7
Bump phpDocumentor/.github from 0.6 to 0.7
2024-05-21 08:10:23 +02: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
dependabot[bot] 7ed4f46ada Bump phpDocumentor/.github from 0.6 to 0.7
Bumps [phpDocumentor/.github](https://github.com/phpdocumentor/.github) from 0.6 to 0.7.
- [Release notes](https://github.com/phpdocumentor/.github/releases)
- [Commits](https://github.com/phpdocumentor/.github/compare/v0.6...v0.7)

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

Signed-off-by: dependabot[bot] <[email protected]>
2024-05-13 10:57:32 +00: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