Skip to content

Fix rendering of class method names inside packagesynopsis#251

Merged
kocsismate merged 3 commits intophp:masterfrom
kocsismate:packagesynopsis-method-name-fix
Apr 29, 2026
Merged

Fix rendering of class method names inside packagesynopsis#251
kocsismate merged 3 commits intophp:masterfrom
kocsismate:packagesynopsis-method-name-fix

Conversation

@kocsismate
Copy link
Copy Markdown
Member

Rendering of method names inside packagesynopsis tags were broken, because the the code relied on having the FQCN inside the classname tag, but this isn't the case anymore for classes inside a packagesynopsis tag.

Tests are TBD.

A printscreen about a namespaced class for evidence:

Screenshot 2026-04-23 at 23 11 48

And another one for a non-namespaced class:

Screenshot 2026-04-23 at 23 11 24 Screenshot 2026-04-23 at 23 11 37

@kocsismate kocsismate requested review from Girgias and iluuu1994 April 23, 2026 21:19
@iluuu1994
Copy link
Copy Markdown
Member

Sorry, don't think I can review this, as I understand absolutely nothing about this code.

@Girgias
Copy link
Copy Markdown
Member

Girgias commented Apr 24, 2026

Can you add some tests files to ensure the rendering works? Tests are run using the php-src test runner.

@kocsismate
Copy link
Copy Markdown
Member Author

Can you add some tests files to ensure the rendering works?

Yes, it was on my todo list :) And I also fixed a bug with properties.

Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit but LGTM.

Comment thread phpdotnet/phd/Package/Generic/XHTML.php Outdated
Co-authored-by: Gina Peter Banyard <girgias@php.net>
@kocsismate kocsismate merged commit 7dfd4f4 into php:master Apr 29, 2026
11 checks passed
@kocsismate kocsismate deleted the packagesynopsis-method-name-fix branch April 29, 2026 08:03
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.

3 participants