Skip to content

Conversation

OskarStark
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Docs? no
Issues --
License MIT

@OskarStark OskarStark merged commit 2180fb5 into symfony:main Sep 24, 2025
@derrabus
Copy link
Member

You might want to consider using PHPStan's strict rules plugin, see https://github.com/phpstan/phpstan-strict-rules/blob/2.0.x/src/Rules/DisallowedConstructs/DisallowedEmptyRule.php

@OskarStark OskarStark deleted the avoid-empty branch September 24, 2025 08:45
@OskarStark
Copy link
Contributor Author

You might want to consider using PHPStan's strict rules plugin, see https://github.com/phpstan/phpstan-strict-rules/blob/2.0.x/src/Rules/DisallowedConstructs/DisallowedEmptyRule.php

Thanks for the hint and I am aware of it, but right now I want to allow empty in ai-bundle/config/options.php as it can be quite complex. 👍

OskarStark added a commit that referenced this pull request Sep 24, 2025
…rict-rules `DisallowEmptyRule` (OskarStark)

This PR was squashed before being merged into the main branch.

Discussion
----------

[PHPStan] Replace custom `ForbidEmptyRule` with phpstan-strict-rules `DisallowEmptyRule`

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Docs?         | no
| Issues        | Reworks #663
| License       | MIT

Commits
-------

1aeb98d [PHPStan] Replace custom `ForbidEmptyRule` with phpstan-strict-rules `DisallowEmptyRule`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants