diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index d59c5237..d0aee7ed 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -25,9 +25,6 @@
-
-
-
@@ -37,9 +34,6 @@
options]]>
-
-
-
@@ -394,13 +388,6 @@
-
-
-
-
-
-
-
@@ -2078,7 +2065,6 @@
-
diff --git a/src/Inflector.php b/src/Inflector.php
index 14fe7079..27c83c5d 100644
--- a/src/Inflector.php
+++ b/src/Inflector.php
@@ -290,7 +290,10 @@ public function getRules($spec = null)
{
if (null !== $spec) {
$spec = $this->_normalizeSpec($spec);
- return $this->rules[$spec] ?? false;
+ if (isset($this->rules[$spec])) {
+ return $this->rules[$spec];
+ }
+ return false;
}
return $this->rules;