-
Notifications
You must be signed in to change notification settings - Fork 258
php 8+ off message warning #144
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
base: master
Are you sure you want to change the base?
Conversation
|
I'm not receiving any deprecation notices about the return type, what's triggering the notice for you? Is this from static analysis? Regardless, wouldn't it make more sense to specify the return types as we did for the Dompdf iterator (dompdf/dompdf@981c1b9)? |
php 8.1 OpenServer |
|
Yes, I have those settings as noted but still do not get the warnings. Unit tests also don't generate anything. I'd like to be able to ensure warnings like these are displayed on my system so I can catch them earlier. |
К сожалению я не могу сказать из-за чего у вас не показывает. Всё зависит от программ которые используете. Возможно они выключают уровень уведомления об устаревании функции php. |
|
I am able to reproduce the warnings. Possible I neglected to test with a font collection previously in which case 🤦. I am still inclined to conform to the implementation rather than suppress errors by annotating a change to the return type. |
|
See the changes in #156 as an alternative. Now that I think about it, perhaps I should just apply those changes on top of yours in this PR rather than do this as a completely separate PR. Or maybe use this for 1.0.2 and the interface compatibility change for 2.0.0. |
Решать вам. Я для широкой совместимости php 5.4-8.4 просто подавляю сообщения. Вы можете идти в ногу со временем и писать код для php 8+. Исходите от статистики сайтов, которые используют ту или иную версию PHP. Звучит хорошо, если для версии 2.0.0 будет минимальная поддержка php8+, а также будете поддерживать 1.0.2 (php 5.4 - 7.4) пока их используют сайты до определённого момента вашего решения о прекращении поддержки библиотеки 1.0.2. |
|
SvgLib already specified a lower limit of PHP 7.1. Possible it works on versions below that, but I don't bother testing anymore. I think I'll release with this change now and the updated return type hinting in a future release. Thanks for your help/thoughts. |

No description provided.