Skip to content
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

Document missing classes #2162

Open
20 of 33 tasks
kocsismate opened this issue Jan 10, 2023 · 17 comments
Open
20 of 33 tasks

Document missing classes #2162

kocsismate opened this issue Jan 10, 2023 · 17 comments
Labels
help wanted Extra attention is needed

Comments

@kocsismate
Copy link
Member

kocsismate commented Jan 10, 2023

Currently, the following internal classes are not yet documented:

The following internal classes are going to be undocumented as soon as PHP 8.4 is released:

  • Dom\AdjacentPosition
  • Dom\DocumentType
  • Dom\CDATASection
  • Dom\Comment
  • Dom\ParentNode
  • Dom\ChildNode
  • Dom\Node
  • Dom\NameSpaceInfo
  • Dom\DocumentFragment
  • Dom\NodeList
  • Dom\CharacterData
  • Dom\Attr
  • Dom\Element
  • Dom\DOMException
  • Dom\Text
  • Dom\NamedNodeMap
  • Dom\Entity
  • Dom\EntityReference
  • Dom\Notation
  • Dom\ProcessingInstruction
  • Dom\XPath
  • Dom\Document
  • Dom\HTMLDocument
  • Dom\XMLDocument
  • ReflectionConstant
@kocsismate kocsismate added the help wanted Extra attention is needed label Jan 10, 2023
@cmb69
Copy link
Member

cmb69 commented Jan 10, 2023

Yay, com_safearray_proxy! I'll try to figure out its details.

Maybe @TimWolla wants to tackle SensitiveParameterValue?

@TimWolla
Copy link
Member

Maybe @TimWolla wants to tackle SensitiveParameterValue?

I can write the description, but I need someone more experienced to bootstrap the docs for me. I've tried php doc-base/scripts/docgen/docgen.php -c SensitiveParameterValue, but that result is vastly incomplete (missing final on the class, missing properties, …).

@kocsismate
Copy link
Member Author

kocsismate commented Jan 10, 2023

@TimWolla as soon aa docgen created the file, you can run gen_stub.php on it (with --replace-classsynopses) and it will fix the signature.

@TimWolla
Copy link
Member

I've tried php build/gen_stub.php --replace-classsynopses ../phpdoc/en/language/predefined/, but that did not do anything. Am I holding it wrong?

The docgen results are:

$ g d HEAD^..HEAD --stat
 language/predefined/interfaces.xml                        |  1 +
 language/predefined/sensitiveparametervalue.xml           | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/sensitiveparametervalue/construct.xml | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/sensitiveparametervalue/debuginfo.xml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/sensitiveparametervalue/getvalue.xml  | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/versions.xml                          |  4 ++++
 6 files changed, 249 insertions(+)

@kocsismate
Copy link
Member Author

@TimWolla yes, you are missing a parameter: after the --replace.... You need the stub path(s) in php-src. And the very last parameter is for the doc-en path.

@TimWolla
Copy link
Member

Thanks, that did something.

TimWolla added a commit to TimWolla/php-doc-en that referenced this issue Jan 10, 2023
TimWolla added a commit to TimWolla/php-doc-en that referenced this issue Jan 10, 2023
TimWolla added a commit that referenced this issue Jan 11, 2023
* Bootstrap SensitiveParameterValue with docgen

* Run `gen_stub.php --replace-classsynopses` and `--replace-methodsynopses`

* Add property

* Add descriptions for SensitiveParameterValue

see #2162
see #2163

* Drop trailing whitespace
claudepache pushed a commit to claudepache/php-doc-en that referenced this issue Jun 1, 2023
* Bootstrap SensitiveParameterValue with docgen

* Run `gen_stub.php --replace-classsynopses` and `--replace-methodsynopses`

* Add property

* Add descriptions for SensitiveParameterValue

see php#2162
see php#2163

* Drop trailing whitespace
@haszi
Copy link
Contributor

haszi commented Jan 2, 2024

Currently, the following internal classes are not yet documented:

  • LibXMLError

LibXMLError is already documented as libXMLError. Is that OK or should one of those be changed to match the spelling of the other?

@Girgias
Copy link
Member

Girgias commented Jan 3, 2024

Currently, the following internal classes are not yet documented:

  • LibXMLError

LibXMLError is already documented as libXMLError. Is that OK or should one of those be changed to match the spelling of the other?

We should fix the name in the docs to match what the stubs is, which is LibXMLError

@kocsismate
Copy link
Member Author

LibXMLError is already documented as libXMLError.

Thanks for the finding! I've just filed #3063 to fix the issue with the spelling.

@Girgias
Copy link
Member

Girgias commented Jan 5, 2024

All missing classes have been documented 🎆

@Girgias Girgias closed this as completed Jan 5, 2024
@kocsismate kocsismate reopened this Jan 6, 2024
@kocsismate
Copy link
Member Author

Sorry, I have to reopen the issue as in the meanwhile (since PHP 8.2) a few other newly added classes became undocumented.

@TimWolla
Copy link
Member

TimWolla commented Jan 6, 2024

few other newly added classes became undocumented.

I would write the docs for IntervalBoundary, but that has the problem that it's the first native enum and I believe PHD cannot yet do enums.

@kocsismate
Copy link
Member Author

I would write the docs for IntervalBoundary, but that has the problem that it's the first native enum and I believe PHD cannot yet do enums.

Uhh, that's a problem indeed. Then I'll try to implement it both at gen_stub.php's and phd's side...

@Girgias
Copy link
Member

Girgias commented Jan 6, 2024

I would write the docs for IntervalBoundary, but that has the problem that it's the first native enum and I believe PHD cannot yet do enums.

Uhh, that's a problem indeed. Then I'll try to implement it both at gen_stub.php's and phd's side...

The issue is that we are using an outdated version of DocBooks, and the new enum synopsis tag is only available in the newest prerelease of Docbook 5.2.

When I get back to the UK next week I will try to finalize the migrations for the markup of classes in the current documentations so that one can update the DocBook version.

@kocsismate
Copy link
Member Author

When I get back to the UK next week I will try to finalize the migrations for the markup of classes in the current documentations so that one can update the DocBook version.

Ah, I completely forgot that you have already been working on this topic. Then I'll leave it up to you to fix phd. :) And I can provide a PR for gen_stub.php if needed.

@TimWolla
Copy link
Member

TimWolla commented Apr 6, 2024

What's the status with enum rendering?

@Girgias
Copy link
Member

Girgias commented Apr 16, 2024

I'm going to work on this again now, as I've given up on trying to not give huge amount of work to already über outdated translations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants