$interfaces * * @psalm-suppress MoreSpecificImplementedParamType parent interface does not specify type of array values */ public function setImplementedInterfaces(array $interfaces): LaminasClassGenerator { return parent::setImplementedInterfaces(array_map( static function (string $interface): string { return '\\' . trim($interface, '\\'); }, $interfaces )); } }