From 5a414b83077459cb593a457f2fadeac1a2c9e219 Mon Sep 17 00:00:00 2001 From: Jens True Date: Tue, 28 Jan 2025 09:38:14 +0000 Subject: [PATCH] More warnings from Psalm. Reduced Psalm config size --- psalm.xml | 6 ------ src/Numerics/Matrix.php | 2 +- src/SkillCalculator.php | 6 +++--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/psalm.xml b/psalm.xml index 0bb2d4f..6c46721 100644 --- a/psalm.xml +++ b/psalm.xml @@ -12,11 +12,5 @@ - - - - - - diff --git a/src/Numerics/Matrix.php b/src/Numerics/Matrix.php index f3ff6ea..533227f 100644 --- a/src/Numerics/Matrix.php +++ b/src/Numerics/Matrix.php @@ -8,7 +8,7 @@ use Exception; class Matrix { - public const ERROR_TOLERANCE = 0.0000000001; + public const float ERROR_TOLERANCE = 0.0000000001; /** * @param array> $matrixRowData diff --git a/src/SkillCalculator.php b/src/SkillCalculator.php index 905257a..a5f049e 100644 --- a/src/SkillCalculator.php +++ b/src/SkillCalculator.php @@ -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,