Subject: | documentation suggests "$types" may be an array ref, but implementation only supports scalar. |
> verify_dependencies($meta, $phases, $types, $incdirs)
> Check all requirements in $meta for phases $phases and types $types
---
perl -MCPAN::Meta::Check=verify_dependencies -MCPAN::Meta -E 'verify_dependencies(CPAN::Meta->new({ version => 2 , name => q[Example] }), [q[runtime]], [q[requires]])'
requested requirements for unknown type: ARRAY(0x205b7b0) at /home/kent/perl5/perlbrew/perls/perl-5.19.11/lib/5.19.11/CPAN/Meta/Prereqs.pm line 191.
CPAN::Meta::Prereqs::merged_requirements(CPAN::Meta::Prereqs=HASH(0x23d9b38), ARRAY(0x205b6d8), ARRAY(0x2665000)) called at /home/kent/perl5/perlbrew/perls/perl-5.19.11/lib/site_perl/5.19.11/CPAN/Meta/Check.pm line 42
CPAN::Meta::Check::requirements_for(CPAN::Meta=HASH(0x205b798), ARRAY(0x205b6d8), ARRAY(0x205b7b0)) called at /home/kent/perl5/perlbrew/perls/perl-5.19.11/lib/site_perl/5.19.11/CPAN/Meta/Check.pm line 64
CPAN::Meta::Check::verify_dependencies(CPAN::Meta=HASH(0x205b798), ARRAY(0x205b6d8), ARRAY(0x205b7b0)) called at -e line 1
---
Seems the error is this:
https://metacpan.org/source/LEONT/CPAN-Meta-Check-0.008/lib/CPAN/Meta/Check.pm#L42
return $prereqs->merged_requirements(ref($phases) ? $phases : [ $phases ], [ $type ]);
As "$type" is already a ref, it is getting re-wrapped, and ->merged_requirements is getting passed [[qw( foo )]] instead of [qw( foo )]