Skip to content

Update stub-generator to resolve PHPDoc types to FQSEN#45

Merged
szepeviktor merged 9 commits into
php-stubs:masterfrom
thelovekesh:fix/fqsen-in-phpdoc
Jun 28, 2026
Merged

Update stub-generator to resolve PHPDoc types to FQSEN#45
szepeviktor merged 9 commits into
php-stubs:masterfrom
thelovekesh:fix/fqsen-in-phpdoc

Conversation

@thelovekesh

Copy link
Copy Markdown
Contributor

@thelovekesh

Copy link
Copy Markdown
Contributor Author

Generator works as expected in php-stubs/wordpress-stubs. Here is the diff I used to test it in wordpress-stubs repo.

diff --git i/composer.json w/composer.json
index acf163e..327ec05 100644
--- i/composer.json
+++ w/composer.json
@@ -7,12 +7,15 @@
         "static analysis",
         "phpstan"
     ],
+    "repositories": [
+        { "type": "vcs", "url": "https://github.com/thelovekesh/generator" }
+    ],
     "homepage": "https://github.com/php-stubs/wordpress-stubs",
     "require-dev": {
         "php": "^7.4 || ^8.0",
         "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
         "nikic/php-parser": "^5.5",
-        "php-stubs/generator": "^0.8.6",
+        "php-stubs/generator": "dev-fix/fqsen-in-phpdoc",
         "phpdocumentor/reflection-docblock": "^6.0",
         "phpstan/phpstan": "^2.1",
         "phpunit/phpunit": "^9.5",

@szepeviktor szepeviktor merged commit 7d0e5bd into php-stubs:master Jun 28, 2026
8 checks passed
@szepeviktor

Copy link
Copy Markdown
Member

🛩️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve PHPDoc types to FQSEN in generated stubs

2 participants