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

Psr\Log\LogLevel constants accepted as $level #2

Merged
merged 11 commits into from
Jul 23, 2024

Conversation

WorkOfStan
Copy link
Owner

Added

  • Class configuration is managed by an array where field names are defined as constants to enable IDE hints.

Fixed

  • argument $level of method log accepts also strings defined in Psr\Log\LogLevel as required by PSR-3

For completeness, the sniff is PSR12.Properties.ConstantVisibility.NotFound
- Class configuration is managed by an array where field names are defined as constants to enable IDE hints.

### Fixed
- argument `$level` of method `log` accepts also strings defined in Psr\Log\LogLevel as required by [PSR-3](https://www.php-fig.org/psr/psr-3/)
@WorkOfStan WorkOfStan merged commit b1683d7 into main Jul 23, 2024
22 checks passed
@WorkOfStan WorkOfStan deleted the feature/refactoring2407 branch July 23, 2024 20:06
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.

1 participant