dapphp / securimage

PHP CAPTCHA Script
https://github.com/dapphp/securimage
BSD 2-Clause "Simplified" License
568 stars 190 forks source link

Compatible with php 8.3 #122

Open Alex300 opened 1 month ago

Alex300 commented 1 month ago

Fix Deprecated: Implicit conversion from float to int loses precision
Fix dinamic creation object property is deprecated

peterdd commented 1 month ago

return type definitions are PHP 7+, securimage is PHP5.4+

(assuming there are still PHP5.6 installs at least)

https://wiki.php.net/rfc/return_types

Alex300 commented 1 month ago

I removed return type definitions. I didn't even know that someone could use PHP 5.x