Skip to content

Conversation

@neznaika0
Copy link
Contributor

@neznaika0 neznaika0 commented Feb 9, 2025

Description
Missed PHPDoc in system/Config/Filters.php.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

* Example:
* 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']]
*
* @var array<string, array<string, list<string>>>
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about this more precise PHPDoc structure? Does it meet your expectations for clarity and accuracy, or would you prefer a simpler approach?

Suggested change
* @var array<string, array<string, list<string>>>
* @var array<string, array{before?: string[], after?: string[]}>

Copy link
Member

Choose a reason for hiding this comment

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

IMO simpler is better.

@samsonasik samsonasik merged commit ae921b0 into codeigniter4:develop Feb 15, 2025
49 checks passed
@samsonasik
Copy link
Member

Thank you @neznaika0

@neznaika0 neznaika0 deleted the refactor/filters-parent-phpdoc branch February 15, 2025 02:52
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.

5 participants