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

Better support for DocBlock parameters #2432

Open
wants to merge 1 commit into
base: release/v5
Choose a base branch
from

Conversation

distantnative
Copy link
Member

Description

Summary of changes

  • DocBlock parameters are now also considered if they describe additional parameters not picked up by the PHP reflection
  • $args parameter is removed if any other parameter is documented

@bastianallgeier
Copy link
Member

Is there a good place where I can check the before and after state?

@distantnative
Copy link
Member Author

distantnative commented Mar 21, 2025

https://getkirby.test/docs/reference/objects/toolkit/collection/sort

But @lukasbestle wanted to review this, so you might not have to do it.

@bastianallgeier
Copy link
Member

There seems to be an issue with optional parameters that have null as default value.

Check out the second argument here http://getkirby.test/docs/reference/objects/toolkit/collection/slice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Reference: Respect custom @param definitions for splat param
2 participants