-
Notifications
You must be signed in to change notification settings - Fork 655
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
Crash in the assert reconciier #9984
Labels
Comments
I found these snippets: https://psalm.dev/r/be04c357aa<?php
class A {
/** @var array{0?: int, 1?: 'foo'|'bar'} */
private array $in;
/** @psalm-assert-if-true array{0: int} $this->in */
public function test(): bool
{
return true;
}
/** @psalm-assert-if-true array{0: int, 1: 'bar'} $this->in */
public function test2(): bool
{
return false;
}
}
$a = new A;
if ($a->test()) {
echo '1';
} elseif ($a->test2()) {
echo '12';
}
|
A little bit weird why cloud interpreter has not crashed. My local one is crashed |
Can you post the stack trace of the crash and the exact version you are using locally? |
|
yeah, that should definitely not happen. Ironically, Psalm warned that this was dangerous and it was ignored: Line 608 in f41da74
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://psalm.dev/r/be04c357aa
The text was updated successfully, but these errors were encountered: