-
Notifications
You must be signed in to change notification settings - Fork 291
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
Deprecation warning in PHP 8.2 #109
Comments
Seeing this error also. Is there a composer package where it is fixed. Looks like the latest is 1.1.9 |
Hello, |
(Actually, this variable was not even used) |
I'll have to check again. I reverted my PHP version to ">=8.0.19", instead for now. I have "gregwar/captcha": "1.1.9", for yours now, but not sure I actually have that after my update. Is there a comment somewhere that says what the actual version besides in composer ? This was the culprit: $value = mt_rand((int)$min, (int)$max); 609. (added the (int) #[\AllowDynamicProperties] supresses the deprecation warning for errors related to the dynamic properties in some classes I'll have to rebuild with 8.2.x to make sure it is fixed. Is there some global way to take care of that dynamic property warning besides the #[\AllowDynamicProperties] until I can stamp out all of those. |
This type of thing works OK as a temporary fix for a package that doesn't have a fix yet, not yours.
|
php: 8.2 This error has been there for php 8.2 for a long time and it has not been fixed |
When running this package with PHP 8.2 RC6 I'm seeing the following deprecation warning:
https://github.com/Gregwar/Captcha/blob/master/src/Gregwar/Captcha/CaptchaBuilder.php#L430
The text was updated successfully, but these errors were encountered: