Skip to content

Commit cbd0fd6

Browse files
authored
Merge pull request #4547 from apphp/master
fix/static method Imagick::queryFormats should not be called dynamically
2 parents 0d6366f + 777ebee commit cbd0fd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Version 1.1.30 under development
55
--------------------------------
66

7+
- Bug #4547: PHP 8 compatibility: Fix deprecation in CCaptcha when using Imagick extension (apphp)
78
- Bug #4541: PHP 8 compatibility: Fix deprecation in MarkdownParser (mdeweerd)
89
- Bug #4544: PHP 8 compatibility: Fix deprecation in CLocale (apphp)
910

framework/web/widgets/captcha/CCaptcha.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ public static function checkRequirements($extension=null)
168168
{
169169
if(extension_loaded('imagick'))
170170
{
171-
$imagick=new Imagick();
172-
$imagickFormats=$imagick->queryFormats('PNG');
171+
$imagickFormats=Imagick::queryFormats('PNG');
173172
}
174173
if(extension_loaded('gd'))
175174
{

0 commit comments

Comments
 (0)