Skip to content
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

fix/static method Imagick::queryFormats should not be called dynamically #4547

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Version 1.1.30 under development
--------------------------------

- Bug #4547: PHP 8 compatibility: Fix deprecation in Imagick (apphp)
- Bug #4541: PHP 8 compatibility: Fix deprecation in MarkdownParser (mdeweerd)
- Bug #4544: PHP 8 compatibility: Fix deprecation in CLocale (apphp)

Expand Down
3 changes: 1 addition & 2 deletions framework/web/widgets/captcha/CCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ public static function checkRequirements($extension=null)
{
if(extension_loaded('imagick'))
{
$imagick=new Imagick();
$imagickFormats=$imagick->queryFormats('PNG');
$imagickFormats=Imagick::queryFormats('PNG');
}
if(extension_loaded('gd'))
{
Expand Down