Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/upload-to-codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
run: mkdir -p build/coverage

- name: Download clover.xml artifact
uses: actions/download-artifact@v3
uses: dawidd6/action-download-artifact@v7
with:
workflow: unit-tests
name: clover.xml
path: build/coverage

Expand Down
2 changes: 1 addition & 1 deletion src/Validation/DNSGetRecordWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getRecords(string $host, int $type): DNSRecords
// A workaround to fix https://bugs.php.net/bug.php?id=73149
set_error_handler(
static function (int $errorLevel, string $errorMessage): never {
throw new \RuntimeException("Unable to get DNS record for the host: $errorMessage");
throw new \RuntimeException(sprintf('Unable to get DNS record for the host: %s', $errorMessage));
}
);
try {
Expand Down