Skip to content

Document each global ext/dom constant on its own row#5434

Open
kocsismate wants to merge 1 commit intophp:masterfrom
kocsismate:dom-const-links
Open

Document each global ext/dom constant on its own row#5434
kocsismate wants to merge 1 commit intophp:masterfrom
kocsismate:dom-const-links

Conversation

@kocsismate
Copy link
Member

@kocsismate kocsismate commented Mar 21, 2026

Before these changes, the gen_stub.php --verify-manual command used to fail with an exception due to ext/DOM constants being wrongly formatted: the old and new constant counterparts were documented in the same row (e.g. DOM_VALIDATION_ERR / Dom\VALIDATION_ERR) which format cannot be recognized by gen_stub.php. Instead, let's document each constant on its own row.

Related to php/php-src#21484

@kocsismate kocsismate requested a review from Girgias March 21, 2026 13:44
@kocsismate kocsismate requested a review from ndossche as a code owner March 21, 2026 13:44
@kocsismate kocsismate closed this Mar 21, 2026
@kocsismate kocsismate reopened this Mar 21, 2026
@ndossche
Copy link
Member

I think from a DX point of view, the new one is worse. I believe they should be documented together for ease.

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.

2 participants