Skip to content

Commit 6901188

Browse files
cuppettclaude
andcommitted
build(psalm): baseline pre-existing Imagick stub and DeprecatedMethod errors
Add 19 pre-existing Psalm errors to the baseline that are not caused by this branch's encryption fixes: - 14 Imagick-related UndefinedClass/UndefinedConstant errors in apps/theming/lib/IconBuilder.php, apps/theming/lib/ImageManager.php, lib/private/Preview/Bitmap.php, lib/private/Preview/HEIC.php, and lib/private/Preview/SVG.php. These stem from the imagick.php stub at build/stubs/imagick.php missing ImagickPixel, ImagickDraw, ImagickException classes and several constants. - 1 DeprecatedMethod error in tests/lib/TestCase.php for SimpleContainer::offsetGet, introduced when that file was added to psalm.xml project files by upstream commit a430702. None of these errors originate from this branch's changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stephen Cuppett <steve@cuppett.com>
1 parent 8bd9ef9 commit 6901188

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

build/psalm-baseline.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,6 +2442,23 @@
24422442
<code><![CDATA[setUserValue]]></code>
24432443
</DeprecatedMethod>
24442444
</file>
2445+
<file src="apps/theming/lib/IconBuilder.php">
2446+
<UndefinedClass>
2447+
<code><![CDATA[ImagickDraw]]></code>
2448+
<code><![CDATA[ImagickPixel]]></code>
2449+
<code><![CDATA[ImagickPixel]]></code>
2450+
<code><![CDATA[ImagickPixel]]></code>
2451+
<code><![CDATA[ImagickPixel]]></code>
2452+
<code><![CDATA[\ImagickException]]></code>
2453+
<code><![CDATA[\ImagickException]]></code>
2454+
<code><![CDATA[\ImagickException]]></code>
2455+
</UndefinedClass>
2456+
<UndefinedConstant>
2457+
<code><![CDATA[Imagick::COMPOSITE_ATOP]]></code>
2458+
<code><![CDATA[Imagick::FILTER_LANCZOS]]></code>
2459+
<code><![CDATA[Imagick::VIRTUALPIXELMETHOD_TRANSPARENT]]></code>
2460+
</UndefinedConstant>
2461+
</file>
24452462
<file src="apps/theming/lib/ImageManager.php">
24462463
<DeprecatedMethod>
24472464
<code><![CDATA[deleteAppValue]]></code>
@@ -2456,6 +2473,12 @@
24562473
<code><![CDATA[setAppValue]]></code>
24572474
<code><![CDATA[setAppValue]]></code>
24582475
</DeprecatedMethod>
2476+
<UndefinedClass>
2477+
<code><![CDATA[$e]]></code>
2478+
<code><![CDATA[$e]]></code>
2479+
<code><![CDATA[\ImagickException]]></code>
2480+
<code><![CDATA[\ImagickException]]></code>
2481+
</UndefinedClass>
24592482
</file>
24602483
<file src="apps/theming/lib/Jobs/RestoreBackgroundImageColor.php">
24612484
<DeprecatedMethod>
@@ -3743,6 +3766,21 @@
37433766
<code><![CDATA[mixed]]></code>
37443767
</LessSpecificImplementedReturnType>
37453768
</file>
3769+
<file src="lib/private/Preview/Bitmap.php">
3770+
<UndefinedConstant>
3771+
<code><![CDATA[imagick::FILTER_LANCZOS]]></code>
3772+
</UndefinedConstant>
3773+
</file>
3774+
<file src="lib/private/Preview/HEIC.php">
3775+
<UndefinedConstant>
3776+
<code><![CDATA[\Imagick::FILTER_CATROM]]></code>
3777+
</UndefinedConstant>
3778+
</file>
3779+
<file src="lib/private/Preview/SVG.php">
3780+
<UndefinedClass>
3781+
<code><![CDATA[\ImagickPixel]]></code>
3782+
</UndefinedClass>
3783+
</file>
37463784
<file src="lib/private/Profile/Actions/FediverseAction.php">
37473785
<NoValue>
37483786
<code><![CDATA[$instance]]></code>
@@ -3956,6 +3994,9 @@
39563994
</DeprecatedMethod>
39573995
</file>
39583996
<file src="tests/lib/TestCase.php">
3997+
<DeprecatedMethod>
3998+
<code><![CDATA[$container]]></code>
3999+
</DeprecatedMethod>
39594000
<InternalMethod>
39604001
<code><![CDATA[lockFile]]></code>
39614002
<code><![CDATA[unlockFile]]></code>

0 commit comments

Comments
 (0)