You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first I had InvalidDocblock setup in my config as errorLevel="info". It found a problem and displayed the issue the first time I ran psalm. If I ran it again, it no longer showed that problem, even though the problem still exists. I tried changing the errorLevel to "error", but it is still not showing the problem.
A more detailed rundown of what I tried: I initially noticed the problem in psalm 1.1.4. I then updated to 2.0. At that point, the first time I ran it, it showed the issue in my code again. I ran it again, and it would not show the problem. I changed the error level to error, and ran it again, but it still did not show the problem.
The problem it found in my docblock is I specified the type of a private property, but did so as if calling a constructor by including the parenthesis. Here are the 2 lines of code causing the issue inside a class. /** @var \Acs\Csst\Data\Database\Tables\SystemStateTable() */ private $systemStateTable;
Here is the error message it shows me when it does find the problem:
INFO: InvalidDocblock - src/Csst/Library/ExceptionHandlerTest.php:9:5 - Acs\Csst\Data\Database\Tables\SystemStateTable() is not a valid type
/** @var \Acs\Csst\Data\Database\Tables\SystemStateTable() */
private $systemStateTable;
The text was updated successfully, but these errors were encountered:
At first I had
InvalidDocblock
setup in my config aserrorLevel="info"
. It found a problem and displayed the issue the first time I ran psalm. If I ran it again, it no longer showed that problem, even though the problem still exists. I tried changing theerrorLevel
to"error"
, but it is still not showing the problem.A more detailed rundown of what I tried: I initially noticed the problem in psalm 1.1.4. I then updated to 2.0. At that point, the first time I ran it, it showed the issue in my code again. I ran it again, and it would not show the problem. I changed the error level to error, and ran it again, but it still did not show the problem.
The problem it found in my docblock is I specified the type of a private property, but did so as if calling a constructor by including the parenthesis. Here are the 2 lines of code causing the issue inside a class.
/** @var \Acs\Csst\Data\Database\Tables\SystemStateTable() */
private $systemStateTable;
Here is the error message it shows me when it does find the problem:
The text was updated successfully, but these errors were encountered: