diff --git a/.github/workflows/upload-to-codacy.yml b/.github/workflows/upload-to-codacy.yml index 6e909981..d92bdfa2 100644 --- a/.github/workflows/upload-to-codacy.yml +++ b/.github/workflows/upload-to-codacy.yml @@ -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 diff --git a/src/Validation/DNSGetRecordWrapper.php b/src/Validation/DNSGetRecordWrapper.php index 5d04c010..f2ce4423 100644 --- a/src/Validation/DNSGetRecordWrapper.php +++ b/src/Validation/DNSGetRecordWrapper.php @@ -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 {