phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
182 stars 23 forks source link

Fix preCommit Errors for get_class() #118

Open Chris53897 opened 8 months ago

Chris53897 commented 8 months ago

Can you please have a look at this Error? This needs to be fixed to allow people to send PRs.

Class name referenced via call of function get_class(). https://github.com/phly/keep-a-changelog/blob/2.12.x/src/ListenerProvider.php#L167

PHPStrom wants to fix it with $type = $event::class; But this in only allowed in PHP >= 8.0