Skip to content

PHP 8.5 on macOS: InvalidArgumentException: Could not get class storage for imagickpixel #11794

@gharlan

Description

@gharlan

When PHP 8.5 is the target version (min version in composer.json), I get the following error on my Mac:

InvalidArgumentException: Could not get class storage for imagickpixel

for this code:

$imagick = new Imagick();
$imagick->setImageBackgroundColor('white');

Reproducer repo: https://github.com/gharlan/psalm-issue
You can see the error here: https://github.com/gharlan/psalm-issue/actions/runs/24312384536
(it only fails with php 8.5 on macOS; php 8.5 on ubuntu and php 8.4 on macOS are working fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions