Skip to content

Commit

Permalink
Add unknown function to checkAllowedErrorTypeForPackageIgnore (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Apr 11, 2024
1 parent 6ca96e6 commit da9eb49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Config/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ private function checkAllowedErrorTypeForPackageIgnore(array $errorTypes): void
if (in_array(ErrorType::UNKNOWN_CLASS, $errorTypes, true)) {
throw new InvalidConfigException('UNKNOWN_CLASS errors cannot be ignored on a package');
}

if (in_array(ErrorType::UNKNOWN_FUNCTION, $errorTypes, true)) {
throw new InvalidConfigException('UNKNOWN_FUNCTION errors cannot be ignored on a package');
}
}

}

0 comments on commit da9eb49

Please sign in to comment.