Skip Menu |

This queue is for tickets about the MooseX-Method-Signatures CPAN distribution.

Report information
The Basics
Id: 52612
Status: new
Priority: 0/
Queue: MooseX-Method-Signatures

Owner: Nobody in particular
Requestors: ijw.bitcard [...]

Bug Information
Severity: Wishlist
Broken in: 0.29
Fixed in: (no value)

Download (untitled) / with headers
text/plain 1.2k
Here's an output from MooseX::Method::Signatures when a validation fails: Validation failed for 'MooseX::Types::Structured::Tuple[MooseX::Types::Structured::Tuple[Object,Defined],MooseX::Types::Structured::Dict[]]' failed with value [ [ test=HASH(0xe641e8), undef ], { } ], Internal Validation Error is: Validation failed for 'MooseX::Types::Structured::Tuple[Object,Defined]' failed with value [ test={ }, undef ] at /home/user/perl5/lib/perl5/MooseX/Method/Signatures/Meta/ line 443 MooseX::Method::Signatures::Meta::Method::validate('MooseX::Method::Signatures::Meta::Method=HASH(0xe641b8)', 'ARRAY(0x16bd478)') called at /home/user/perl5/lib/perl5/MooseX/Method/Signatures/Meta/ line 145 test::thing('test=HASH(0xe641e8)', 'undef') called at line 21 Here's an example of what the output should look like: Method signature validation failed for call to test::thing(): arg '$a' must be type 'Defined', received value was 'undef' at line 21 Note the important points here: - no line numbers from within MooseX::Signatures - a small amount of information describing something that needs fixing (either the value or the declaration for a specific argument) - information relating to the signature ($a) rather than the type validator (tuples, etc.)

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to