diff --git a/src/QA/SoftMocks.php b/src/QA/SoftMocks.php index d6b9e09..7c6b69d 100644 --- a/src/QA/SoftMocks.php +++ b/src/QA/SoftMocks.php @@ -988,7 +988,7 @@ public static function getConst($namespace, $const) return self::$constant_mocks[$const]; } - if (array_key_exists(self::$removed_constants)) { + if (array_key_exists($const, self::$removed_constants)) { trigger_error('Trying to access removed constant ' . $const . ', assuming "' . $const . '"'); return $const; }