Skip to content

Commit

Permalink
Fix Psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Jul 3, 2020
1 parent 040ffa3 commit 849b619
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,29 @@
</errorLevel>
</PossiblyInvalidArgument>

<!-- These are due to how PhpParser classes work with properties -->
<!-- These are due to how Command classes work with properties -->
<PossiblyNullArgument>
<errorLevel type="suppress">
<file name="src/Command/InstallCommand.php"/>
</errorLevel>
</PossiblyNullArgument>

<!-- These are due to how PhpParser and Command classes work with properties -->
<PossiblyNullOperand>
<errorLevel type="suppress">
<file name="src/Parser/StatementFilter.php"/>
<file name="src/Parser/StatementFilter.php"/>
<file name="src/Command/InstallCommand.php"/>
</errorLevel>
</PossiblyNullOperand>

<!-- These are due to how Command classes work with Application properties -->
<PossiblyNullReference>
<errorLevel type="suppress">
<file name="src/Command/InstallCommand.php"/>
<file name="src/Command/SelfUpdateCommand.php"/>
</errorLevel>
</PossiblyNullReference>

<!-- Psalm is not finding inherited PHPDoc -->
<MissingReturnType>
<errorLevel type="suppress">
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/MoodlePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MoodlePlugin
* EG: this is the command name and it should only
* be used for reading configs.
*
* @var string
* @var string|null
*/
public $context = '';

Expand Down

0 comments on commit 849b619

Please sign in to comment.