-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Class missing in stubs #9
Comments
Hello @kkmuffme! It is very easy to debug this project. |
If I run it for that file only, there are no errors either (but no stubs generated) it even says "OK":
and the output file contains only:
|
Try debugging in this try/catch block generator/src/StubsGenerator.php Line 133 in 53c2cbb
Please see #4 |
I'm also experiencing the same issue. When manually trying to generate the stubs from the command line I get the correct number of stubs recognized, but when I check the file, it's empty. When I don't specify No error is thrown. I var dumped the visitor in the Not sure why nothing is getting parsed out. |
Dear Denis! |
My PHP parsing is not strong, so I'll wait for a fix, but when you'll have something feel free to ping me to test it 👍🏼 |
I went the wrong way: temporarily commented out that line mentioned in #14 |
Tried that, but didn't do anything (nothing was generated) |
I've just commented out all four |
|
Yup can confirm, commenting those lines out seems to generate a correct stub 👍🏼 |
Would a new config switch for that behaviour (include "existing" things) be useful? Maybe such issues can then be avoided |
I'm sorry, Martin! This is a highly dangerous ⚡ fork for php-stubs organization stubs only. |
Package installed with composer: abraham/twitteroauth
(I need the stubs as I'm doing something like you do with the WP stubs which do not use composer, so I need stubs)
generate-stubs --force --functions --classes --interfaces --traits --out="a.php" --no-interaction twitter
(package is installed in twitter folder)
It generates the stubs (10 classes), but stubs for
class TwitterOAuth extends Config
are missing.But e.g.
class TwitterOAuthException extends \Exception
and all other classes are there (total 11 classes, but only 10 have stubs created).Is this a bug or is there something I'm doing wrong?
The text was updated successfully, but these errors were encountered: