Various fixes for even more interfaces#2560
Conversation
Will attempt to get those in a different PR focused on those.
|
@kocsismate (knowing that you're busy) do you know why the JSON and |
| @@ -35,9 +35,7 @@ | |||
| </ooclass> | |||
|
|
|||
| <classsynopsisinfo> | |||
There was a problem hiding this comment.
| <classsynopsisinfo> | |
| <classsynopsis class="interface"> |
Isn't this missing, or am I not understanding how the new markup should look?
There was a problem hiding this comment.
So for the new markup generation to kick in, we want it to call format_classsynopsisinfo_ooclass_classname - which means we need a ooclass inside of a classsynopsisinfo.
Then once that's being called we also need the class attr set to interface - which changes the render from calling it a class to use interface. Similarly, when that attr is set this way the oointerface that's being extended/implemented will adjust for the correct verb.
There was a problem hiding this comment.
Okay, I'm going to group thoughts in the issues I opened to try and centralise stuff instead of me commenting left and right.
|
Okay, I'm not sure I actually really like this new expected format for interfaces, it is very confusing. Can't we do something like: <classsynopsis class="interface">
<oointerface>
<interfacename>Throwable</interfacename>
</oointerface>
<classsynopsisinfo>
<oointerface>
<interfacename>Throwable</interfacename>
</oointerface>
<oointerface>
<modifier>extends</modifier>
<interfacename>Stringable</interfacename>
</oointerface>
<oointerface>
<modifier>extends</modifier>
<interfacename>SecondInterface</interfacename>
</oointerface>
</classsynopsisinfo>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.throwable')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Throwable'])">
<xi:fallback/>
</xi:include>
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.stringable')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Stringable'])">
<xi:fallback/>
</xi:include>
</classsynopsis>And where PhD collapses multiple References: |
Hmm, before committing my changes, I had to filter out a few files (which have unrelated diffs), and probably I missed |
| <oointerface> | ||
| <interfacename>BackedEnum</interfacename> | ||
| </oointerface> | ||
| <ooclass><classname>BackedEnum</classname></ooclass> |
There was a problem hiding this comment.
Please do not do commit this change on its own since it's contrary to the output of gen_stub.php (the script which generates these markups). Please rather fix the script itself.
There was a problem hiding this comment.
@kocsismate Are there any docs or wiki pages somewhere detailing how to work with the Oh my fault - for some reason I forgot this PR was attempting to fix both extension refs and language docs.gen_stub.php script? I have ran it before in the past on php-src but am not sure how I would run that script for the extensions?
|
Right, @kocsismate I think the current way we render the class synopsis is kinda bad, see #2563 (and the related PhD PR) to see what the new markup would look like. |
|
Going to close this per the new direction. |
Fixes: