Skip to content

Commit da9eb49

Browse files
authored
Add unknown function to checkAllowedErrorTypeForPackageIgnore (#119)
1 parent 6ca96e6 commit da9eb49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Config/Configuration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ private function checkAllowedErrorTypeForPackageIgnore(array $errorTypes): void
473473
if (in_array(ErrorType::UNKNOWN_CLASS, $errorTypes, true)) {
474474
throw new InvalidConfigException('UNKNOWN_CLASS errors cannot be ignored on a package');
475475
}
476+
477+
if (in_array(ErrorType::UNKNOWN_FUNCTION, $errorTypes, true)) {
478+
throw new InvalidConfigException('UNKNOWN_FUNCTION errors cannot be ignored on a package');
479+
}
476480
}
477481

478482
}

0 commit comments

Comments
 (0)