isaackaara
700b4e071f
fix: Remove trailing spaces from empty docblock lines ( #30 )
...
When DocBlock text contains empty lines, str_replace replaces each newline
with a newline followed by ' * ', producing ' * ' (with trailing space) for
empty lines. This triggers trailing-whitespace linters.
Added a preg_replace after each str_replace call to strip trailing horizontal
whitespace from lines that consist only of ' *' followed by spaces.
2026-03-05 12:30:11 +01:00
Joey Richard
d103774cbe
Correcting an issue where there are two empty lines, first with an extra space, when there is no text to display on the first line. ( #29 )
2025-07-17 08:07:30 +02:00
func0der
5a3e22c213
trim_empty_docblock_whitespaces Trim whitespaces from phpdocs without content ( #28 )
2025-06-19 15:09:12 +02:00
Nereo Berardozzi
b6ff9f9360
Fixed parsing of string literals and array shapes ( #27 )
2025-01-18 20:26:32 +01:00
Nereo Berardozzi
ffb733ef78
Fixed callable types parsing ( #26 )
2024-12-30 19:14:26 +01:00
Barry vd. Heuvel
6b3854ad25
Add ContextFactory ( #25 )
2024-12-30 11:31:22 +01:00
Aamir Sohail KmAs
db125e8df4
style: fix typo in Description.php ( #24 )
2024-12-28 11:00:03 +01:00
Nereo Berardozzi
476f62b577
Added generics to Context ( #22 )
2024-12-24 19:06:41 +01:00
Nereo Berardozzi
e5c8b970d6
Handle more PHPDoc type keyworks ( #23 )
...
* Added advanced PHPDoc type keyworks
* Fixed typed keywords
2024-12-24 19:06:02 +01:00
Nereo Berardozzi
d5d2d76892
Parse template tag for generics ( #21 )
...
* Parse template tag for generics
* Fixed templatetag docblock
* Fixed PHP 7 issue
* Fixed PHP 7.2 issue
* Fixed another 7.2 issue
2024-12-24 12:30:50 +01:00
Jeppe Knockaert
0fd348d3fe
Replace implicitly nullable parameters for PHP 8.4
2024-11-27 11:22:09 +01:00
武田 憲太郎
836d531676
Fixed incorrect parsing of return types for generics and closures
2024-10-20 09:02:42 +09:00
武田 憲太郎
23fa082874
Support nested generics and closures type hint
2024-10-16 18:33:31 +09:00
Murchenko
05596d7626
add support parse generic type in docBlock
2023-04-13 22:42:48 +03:00
Andrew Smith
9a2f0eb8ba
Support parsing SuppressWarnings tags in doc block
...
Signed-off-by: Andrew Smith <[email protected] >
2022-11-03 21:08:57 +10:00
Barry vd. Heuvel
e6526132ee
Fix deprecated messages
2022-10-31 16:34:24 +01:00
Barry vd. Heuvel
6b7c110b33
Merge pull request #10 from barryvdh/test-ghactions
...
Create run-tests.yml
2022-10-31 16:22:38 +01:00
Barry vd. Heuvel
6eafab0ff3
Revert "Check namespace + class to see if it exists"
...
This reverts commit 7f729dc9a7 .
2022-10-31 16:13:13 +01:00
Barry vd. Heuvel
3f6ec1c280
Merge pull request #8 from Kerigard/feat/separate-tags
...
feat: add separation of tags into groups
2022-10-31 16:06:25 +01:00
Barry vd. Heuvel
977da00f0f
Merge pull request #6 from Stevemoretz/patch-2
...
Check namespace + class to see if it exists
2022-10-31 16:01:03 +01:00
M@ster
295d2fba38
Generic types bug fix
2022-10-19 23:16:04 +02:00
Kerigard
ef9f04dd59
feat: add separation of tags into groups
2022-09-17 20:54:33 +03:00
Steve Moretz
7f729dc9a7
Check namespace + class to see if it exists
...
main issue : https://github.com/barryvdh/laravel-ide-helper/issues/1273
Adds support for psaml and php-stan specific params and other possible problems.
2021-10-27 00:08:57 +03:30
Shuai Yang
b0b90f44f0
Fix annotation error about typed array like array<mixed> or array<int> ...
2020-01-08 15:09:57 +08:00
Barry vd. Heuvel
6b69015d83
Merge pull request #2 from JeppeKnockaert/add-brackets-for-parsing-return-types
...
feature - Improve method tag parsing
2018-12-13 11:34:14 +01:00
Jeppe Knockaert
053005ed4e
feature - Improve method tag parsing
...
This is an update based on the original repository, I just cherry-picked
some code.
https://github.com/phpDocumentor/ReflectionDocBlock/blob/master/src/DocBlock/Tags/Method.php
This includes:
- https://github.com/phpDocumentor/ReflectionDocBlock/commit/e9454d844db9d8fd2f276a2069647c3c4fb15085
- https://github.com/phpDocumentor/ReflectionDocBlock/commit/e9454d844db9d8fd2f276a2069647c3c4fb15085
2018-12-13 10:13:22 +01:00
Jeppe Knockaert
9b08619fbd
Allow deleting tags in DocBlocks
2018-10-23 15:38:27 +02:00
Barry vd. Heuvel
d411a2bc7e
Merge branch 'release/2.x' of https://github.com/phpDocumentor/ReflectionDocBlock
2016-06-13 21:28:05 +02:00
Barry vd. Heuvel
fd9e6bd26d
Move around
2013-06-08 23:04:47 +02:00
Barry vd. Heuvel
d5e4b2ec73
Also check if it is not already absolute
2013-06-08 23:02:34 +02:00
Barry vd. Heuvel
bae8be0dcd
Test for false relative paths
...
Closure -> \Closure etc
2013-06-08 22:53:54 +02:00
Barry vd. Heuvel
3a5d30e027
Use parsed types for content
2013-06-08 22:37:52 +02:00
Barry vd. Heuvel
d2414cd3dc
Add setType and addType
2013-06-08 22:37:36 +02:00
Barry vd. Heuvel
b07e3c36b7
Change namespace
2013-06-08 12:45:35 +02:00