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

fix: Crash when data contains a single backslash #233

Merged
merged 3 commits into from
Oct 9, 2024
Merged

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
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