-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Warn about missing class synopses when running gen_stub.php --replace-classsynopses #9472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks really helpful.
Warning: Missing class synopsis page for XMLParser
Hmm, https://www.php.net/manual/en/class.xmlparser.php is there.
Do we want to document the Attribute classes themselves?
In my opinion, we should.
What's that? |
b2575ca
to
5ee41c3
Compare
Agreed!
According to bf48daa, it seems like that this class is for some short of laziness. I'm not really sure if it really works because there is no meaningful test for it. |
Ah, thanks! So this is a support class for |
f6a6f8e
to
5ee41c3
Compare
I slightly changed the implementation: now, the validation is only shown when the
The input arguments have to cover all members of the targeted class hierarchy (thus we need to include ./Zend as well), and in this case, no class synopsis page of any Zend classes would be found. In order to prevent such scenarios, I think it's a good idea to be able to opt into the validation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
now, the validation is only shown when the --verify flag is set.
Good idea!
* PHP-8.2: Add support for validation of missing class synopses (#9472)
Running
./build/gen_stub.php --replace-classsynopses ./ ../doc-en/
locally shows the following output now:Do we want to document the Attribute classes themselves? if not, I'll exclude them too.