Skip to content

Commit

Permalink
fixed psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arusinowski committed Feb 2, 2024
1 parent 338ebd2 commit 236df3f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
49 changes: 31 additions & 18 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
<?xml version="1.0"?>
<psalm
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="4"
usePhpDocMethodsWithoutMagicCall="true"
findUnusedPsalmSuppress="true"
findUnusedBaselineEntry="true"
findUnusedCode="false"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
autoloader="tests/bootstrap.php"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<projectFiles>
<directory name="src/"/>
<ignoreFiles>
<directory name="vendor/"/>
</ignoreFiles>
</projectFiles>

<issueHandlers>
<MissingClosureReturnType errorLevel="info" />
<issueHandlers>
<LessSpecificReturnType errorLevel="suppress" />
<RedundantPropertyInitializationCheck errorLevel="suppress"/>
<RedundantCast errorLevel="suppress"/>
<UndefinedAttributeClass errorLevel="suppress"/>
<LessSpecificReturnType errorLevel="info" />

<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />
<MissingClosureParamType errorLevel="info" />
<MissingClosureReturnType errorLevel="info" />

<DocblockTypeContradiction errorLevel="info" />
<RedundantConditionGivenDocblockType errorLevel="info" />
</issueHandlers>
<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />
<MissingClosureParamType errorLevel="info" />
<MissingParamType errorLevel="info" />

<DocblockTypeContradiction errorLevel="info" />
<RedundantConditionGivenDocblockType errorLevel="info" />
</issueHandlers>
</psalm>
2 changes: 1 addition & 1 deletion src/View/Helper/DatatableHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class DatatableHelper extends Helper
];

// @todo maybe array of instances
private Datatable $dtInstance;
private ?Datatable $dtInstance = null;

/**
* @param array $config
Expand Down

0 comments on commit 236df3f

Please sign in to comment.