need use flag php_targets_php8-1 Reproducible: Always
Created attachment 824493 [details] output from emerge --info =dev-php/pecl-imagick-3.5.1
May also be usefull for dev-php/pecl-imagick-3.5.1 in order to avoid keeping multiple PHP versions installed. The required patch seems only to add php8-1 to the USE_PHP list.
php-8.1 and 8.2 have been supported for a while, now needs testing with 8.3 and 8.4 if you still use it