mundschenk-at / php-typography

A PHP library for improving your web typography.
GNU General Public License v2.0
68 stars 6 forks source link

Fix PHP 8.1 deprecation warnings #151

Closed zero2one closed 2 years ago

zero2one commented 2 years ago

Fixes #150

Fixed so that the code stays compatible with the composer PHP requirements:

Added #[\ReturnTypeWillChange] comments to the methods that do not have the proper return type set.

Better would be to release a new version of the package that supports ^7.4 || ^8.0 and that defines the proper input and output types.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

mundschenk-at commented 2 years ago

Thank you. I am fixing the warnings via #155 instead (the mixed declaration is 8.0-only and I still want to support at least latter 7.x versions for now).