Fixed in 0.30
I don't really understand how to make it fail with the empty prototype, so I just trusted chip and removed the prototype. Feel free to enlighten me.
Also added a little doc about the JSON support.
Chip I msg'd you on irc. Oh and, Hi.
Thu Apr 04 13:59:38 2013The RT System itself - Status changed from 'new' to 'open'
Thu Apr 04 13:59:39 2013ingy [...] cpan.org - Status changed from 'open' to 'resolved'
Re: [rt.cpan.org #84398] TO_JSON has wrong prototype
Date:
Thu, 04 Apr 2013 12:58:55 -0700
To:
bug-boolean [...] rt.cpan.org
From:
Chip Salzenberg <chip [...] pobox.com>
Thanks, Ingy. You can make the old one fail for a test by trying to
call it as a function.
$bool->TO_JSON # always did work
boolean::TO_JSON($bool); # will fail with old prototype
Thu Apr 04 15:59:11 2013The RT System itself - Status changed from 'resolved' to 'open'
Sat Apr 13 22:47:39 2013ingy [...] cpan.org - Correspondence added
On Thu Apr 04 15:59:10 2013, CHIPS wrote:
Show quoted text
> Thanks, Ingy. You can make the old one fail for a test by trying to
> call it as a function.
>
> $bool->TO_JSON # always did work
> boolean::TO_JSON($bool); # will fail with old prototype
>
>> Thanks, Ingy. You can make the old one fail for a test by trying to
>> call it as a function.
>>
>> $bool->TO_JSON # always did work
>> boolean::TO_JSON($bool); # will fail with old prototype
>>