Skip to content

Comments

fix: use blessed() instead of ref() in Set::_isdq()#14

Draft
Koan-Bot wants to merge 1 commit intocern-mig:masterfrom
atoomic:koan.atoomic/fix-set-isdq-unblessed-v2
Draft

fix: use blessed() instead of ref() in Set::_isdq()#14
Koan-Bot wants to merge 1 commit intocern-mig:masterfrom
atoomic:koan.atoomic/fix-set-isdq-unblessed-v2

Conversation

@Koan-Bot
Copy link

ref() returns a truthy value for unblessed references (e.g. "HASH"),
causing \$thing->isa() to be called on an unblessed ref, which dies
with "Can't call method 'isa' on unblessed reference".

blessed() from Scalar::Util correctly returns undef for unblessed
references, preventing the crash.

Supersedes #3 (which included unrelated infrastructure commits).


🤖 Generated by Kōan

ref() returns a truthy value for unblessed references (e.g. "HASH"),
causing $thing->isa() to be called on an unblessed ref, which dies
with "Can't call method 'isa' on unblessed reference".

blessed() from Scalar::Util correctly returns undef for unblessed
references, preventing the crash.
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

Successfully merging this pull request may close these issues.

1 participant