-
Notifications
You must be signed in to change notification settings - Fork 653
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
Backtrace included in InvalidDocblock message #8323
Comments
I found these snippets: https://psalm.dev/r/4d782ddd22<?php
namespace Bar;
/**
* Asserts that two variables are not the same.
*
* @template T
* @param T $expected
* @param mixed $actual
* @psalm-assert !=$expected $actual
*/
function assertNotSame($expected, $actual) : void {}
$expected = rand(0, 1) ? 4 : 5;
$actual = 6;
assertNotSame($expected, $actual);
/** @psalm-trace $actual */;
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://psalm.dev/r/4d782ddd22
I thought it was a crash at first, but we're actually including a backtrace in the message.
Semi-related to #8322
The text was updated successfully, but these errors were encountered: