We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<?php /** * @method int getCode() */ class MyException extends Exception { } class Foo { /** @var int $code */ protected $code = 500; public function bar(): void { try{} catch(MyException $e) { $this->code = $e->getCode(); } } }
The above complains that $this->code cannot be assigned to int|string even though I do have usePhpDocMethodsWithoutMagicCall enabled in psalm.xml.
$this->code
int|string
usePhpDocMethodsWithoutMagicCall
https://psalm.dev/r/73894551b0
P.S. pslam.dev doesn't have setting to enable usePhpDocMethodsWithoutMagicCall
The text was updated successfully, but these errors were encountered:
071fae9
Thank you.
Sorry, something went wrong.
Fix vimeo#2095 - respect @method annotations even when method already…
cbe1b88
… exists
No branches or pull requests
The above complains that
$this->code
cannot be assigned toint|string
even though I do haveusePhpDocMethodsWithoutMagicCall
enabled in psalm.xml.https://psalm.dev/r/73894551b0
P.S. pslam.dev doesn't have setting to enable
usePhpDocMethodsWithoutMagicCall
The text was updated successfully, but these errors were encountered: