mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-30 15:15:56 +00:00
More warnings from Psalm. Reduced Psalm config size
This commit is contained in:
@ -12,11 +12,5 @@
|
|||||||
<directory name="src"/>
|
<directory name="src"/>
|
||||||
<directory name="tests"/>
|
<directory name="tests"/>
|
||||||
<directory name="benchmark"/>
|
<directory name="benchmark"/>
|
||||||
<ignoreFiles>
|
|
||||||
<directory name="vendor"/>
|
|
||||||
</ignoreFiles>
|
|
||||||
</projectFiles>
|
</projectFiles>
|
||||||
<plugins>
|
|
||||||
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
|
|
||||||
</plugins>
|
|
||||||
</psalm>
|
</psalm>
|
||||||
|
@ -8,7 +8,7 @@ use Exception;
|
|||||||
|
|
||||||
class Matrix
|
class Matrix
|
||||||
{
|
{
|
||||||
public const ERROR_TOLERANCE = 0.0000000001;
|
public const float ERROR_TOLERANCE = 0.0000000001;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<int,array<int,float>> $matrixRowData
|
* @param array<int,array<int,float>> $matrixRowData
|
||||||
|
@ -11,11 +11,11 @@ use Exception;
|
|||||||
*/
|
*/
|
||||||
abstract class SkillCalculator
|
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(
|
protected function __construct(
|
||||||
private readonly int $supportedOptions,
|
private readonly int $supportedOptions,
|
||||||
|
Reference in New Issue
Block a user