fix(psalm): stub the Imagick methods Thumbnail uses, on which Psalm 7.12 crashes #18

Merged
dawid merged 1 commit from fix-psalm-imagick into main 2026-11-29 07:30:28 +00:00
Owner

Psalm 7.12.0 (#7) crashes on main's CI: $storage should not be null for Imagick::queryformats. Older Psalm let methods missing from the stub pass. The stub now has queryFormats, readImage and setImageCompressionQuality, which Thumbnail uses. Psalm 7.12 then finds no errors; cs:check is clean.

Psalm 7.12.0 (#7) crashes on main's CI: `$storage should not be null for Imagick::queryformats`. Older Psalm let methods missing from the stub pass. The stub now has `queryFormats`, `readImage` and `setImageCompressionQuality`, which Thumbnail uses. Psalm 7.12 then finds no errors; cs:check is clean.
fix(psalm): stub the Imagick methods Thumbnail uses, on which Psalm 7.12 crashes
All checks were successful
CI / php (dev-stable34) (pull_request) Successful in 1m28s
CI / server (32) (pull_request) Successful in 2s
CI / server (35) (pull_request) Successful in 2s
CI / php (dev-stable35) (pull_request) Successful in 1m31s
CI / standards (pull_request) Successful in 1m38s
CI / php (dev-master) (pull_request) Successful in 1m30s
CI / php (dev-stable33) (pull_request) Successful in 1m30s
CI / php (dev-stable32) (pull_request) Successful in 1m28s
CI / javascript (pull_request) Successful in 43s
273de5795d
dawid merged commit b4cd8be403 into main 2026-11-29 07:30:28 +00:00
dawid deleted branch fix-psalm-imagick 2026-11-29 07:30:29 +00:00

Tests of CI / php (dev-master): passed

21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)

Of 273de5795d, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-master- --> ### Tests of CI / php (dev-master): passed **21 passed, 0 failed, 5 skipped** (26 tests, 0.1 s) <sub>Of 273de5795d, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/128), updated by every run.</sub>

Tests of CI / php (dev-stable32): passed

21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)

Of 273de5795d, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable32- --> ### Tests of CI / php (dev-stable32): passed **21 passed, 0 failed, 5 skipped** (26 tests, 0.1 s) <sub>Of 273de5795d, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/128), updated by every run.</sub>

Tests of CI / php (dev-stable33): passed

21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)

Of 273de5795d, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable33- --> ### Tests of CI / php (dev-stable33): passed **21 passed, 0 failed, 5 skipped** (26 tests, 0.1 s) <sub>Of 273de5795d, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/128), updated by every run.</sub>

Tests of CI / php (dev-stable34): passed

21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)

Of 273de5795d, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable34- --> ### Tests of CI / php (dev-stable34): passed **21 passed, 0 failed, 5 skipped** (26 tests, 0.1 s) <sub>Of 273de5795d, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/128), updated by every run.</sub>

Tests of CI / php (dev-stable35): passed

21 passed, 0 failed, 5 skipped (26 tests, 0.1 s)

Of 273de5795d, the run, updated by every run.

<!-- ci-report tests: CI-php-dev-stable35- --> ### Tests of CI / php (dev-stable35): passed **21 passed, 0 failed, 5 skipped** (26 tests, 0.1 s) <sub>Of 273de5795d, [the run](https://git.ciepiela.org/dawid/nextcloud-talk-stickers/actions/runs/128), updated by every run.</sub>
Sign in to join this conversation.
No description provided.