Skip to content

Conversation

exaby73
Copy link
Collaborator

@exaby73 exaby73 commented Oct 9, 2024

Fixes #232

@@ -300,7 +300,7 @@ public function mapValueToType(mixed $value)
$type = get_debug_type($value);
foreach ($this->rawToTypes as $class => $formatter) {
/** @psalm-suppress ArgumentTypeCoercion */
if ($type === $class || is_a($value, $class, true)) {
if ($type === $class || is_a($value, $class)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch bhai

@transistive transistive merged commit c91a479 into main Oct 9, 2024
6 checks passed
@transistive transistive deleted the fix/slash-crash branch March 9, 2025 11:27
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.

Crash on property with value "\\"
2 participants