Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'zip' from List::MoreUtils or from List::AllUtils ? #18

Closed
uniejo opened this issue Apr 16, 2024 · 1 comment
Closed

Use 'zip' from List::MoreUtils or from List::AllUtils ? #18

uniejo opened this issue Apr 16, 2024 · 1 comment

Comments

@uniejo
Copy link

uniejo commented Apr 16, 2024

I get the following error

Prototype mismatch: sub JSON::Schema::AsType::Draft4::Types::zip (@@;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@) vs none at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 63.
at xxxxx/t/../local/lib/perl5/JSON/Schema/AsType/Draft4/Types.pm line 108.

In JSON::Schema::AsType::Draft4::Types i can see that 'zip' is inherited from two different places:

use List::MoreUtils qw/ all any zip none /;

and further down

use List::AllUtils qw/ zip none uniq /;

The error goes away, if I replace the last line with

use List::AllUtils qw/ none uniq /;

@yanick
Copy link
Owner

yanick commented Apr 16, 2024

Good catch. Fixed and on its way to CPAN!

@yanick yanick closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants