More warnings from Psalm. Reduced Psalm config size

This commit is contained in:
2025-01-28 09:38:14 +00:00
parent e2620fde53
commit 5a414b8307
3 changed files with 4 additions and 10 deletions

View File

@ -12,11 +12,5 @@
<directory name="src"/>
<directory name="tests"/>
<directory name="benchmark"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
</plugins>
</psalm>

View File

@ -8,7 +8,7 @@ use Exception;
class Matrix
{
public const ERROR_TOLERANCE = 0.0000000001;
public const float ERROR_TOLERANCE = 0.0000000001;
/**
* @param array<int,array<int,float>> $matrixRowData

View File

@ -11,11 +11,11 @@ use Exception;
*/
abstract class SkillCalculator
{
public const NONE = 0x00;
public const int NONE = 0x00;
public const PARTIAL_PLAY = 0x01;
public const int PARTIAL_PLAY = 0x01;
public const PARTIAL_UPDATE = 0x02;
public const int PARTIAL_UPDATE = 0x02;
protected function __construct(
private readonly int $supportedOptions,