Skip to content

Commit

Permalink
bit lazy, but w/e
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jan 13, 2025
1 parent 7a3d437 commit 8441e51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/load-fhir-xsd/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ runs:
ls -l '${{ steps.vars.outputs.cache-dir}}'
echo "::endgroup::"
echo "::group::Listing files in '${{ steps.vars.outputs.version-xsd-cache-dir }}'"
echo "::group::Listing files in '${{ steps.vars.outputs.version-xsd-cache-dir }}'"
ls -l '${{ steps.vars.outputs.version-xsd-cache-dir }}'
echo "::endgroup::"
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
uses: actions/checkout@v4

- name: 'Load FHIR ${{ matrix.test-target }} Source'
id: fhir-source
if: matrix.test-target != 'Core'
uses: ./.github/actions/load-fhir-xsd
with:
Expand Down
4 changes: 2 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public static function fromArray(array $data): Config
if (!isset($data['rootNamespace'])) {
throw new \InvalidArgumentException('Key "rootNamespace" is required.');
}
if (!isset($data['versions']) || !is_iterable($data['versions'])) {
throw new \InvalidArgumentException('Key "versions" is required and must be iterable.');
if (isset($data['versions']) && !is_iterable($data['versions'])) {
throw new \InvalidArgumentException('Key "versions" must be iterable.');
}
if (isset($data['logger']) && !($data['logger'] instanceof LoggerInterface)) {
throw new \InvalidArgumentException('Key "logger" must be an instance of Psr\Log\LoggerInterface');
Expand Down

0 comments on commit 8441e51

Please sign in to comment.