Skip to content

Conversation

@emodric
Copy link
Contributor

@emodric emodric commented Dec 2, 2025

Description

Hi,

Versions of mark-mabe/php-enum lower than 4.4 emit a warning on PHP 8:

PHP Warning: Private methods cannot be final as they are never overridden by other classes

so it would be nice to restrict installs to versions that work fine. There is no BC breaks with this and no change in dependencies.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING guidelines
  • My code follows the code style of this project
  • I have added tests that prove my fix is effective or that my feature works
  • All new and existing tests pass
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Hi,

Versions of `mark-mabe/php-enum` lower than 4.4 emit a warning on PHP 8:

```
PHP Warning: Private methods cannot be final as they are never overridden by other classes
```

so it would be nice to restrict installs to versions that work fine. There is no BC breaks with this and no change in dependencies.
Copy link
Collaborator

@DannyvdSluijs DannyvdSluijs left a comment

Choose a reason for hiding this comment

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

Nice work. Very clean PR solving one single issue, love it.
Could you also include a changelog entry? This way I can quickly merge and make a patch release.

@emodric
Copy link
Contributor Author

emodric commented Dec 2, 2025

@DannyvdSluijs Done!

@DannyvdSluijs DannyvdSluijs merged commit acb1c54 into jsonrainbow:main Dec 2, 2025
18 checks passed
@DannyvdSluijs
Copy link
Collaborator

Released as part of 6.6.3, see https://github.com/jsonrainbow/json-schema/releases/tag/6.6.3

@emodric
Copy link
Contributor Author

emodric commented Dec 2, 2025

Thanks @DannyvdSluijs !

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.

2 participants