Skip to content

Commit 555eb3c

Browse files
committed
OS-115 Skipping address with empty matrikelnummer phpcs fix
1 parent 7e5ddb5 commit 555eb3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111

1212
## [Unreleased]
1313

14+
- [OS-115] Skipping empty maktrikula objects
15+
1416
## [3.16.0] 2024-08-27
1517

1618
[#110](https://github.com/OS2Forms/os2forms/pull/110)

modules/os2forms_dawa/src/Plugin/os2web/DataLookup/DatafordelerDataLookup.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupBase;
1010
use GuzzleHttp\ClientInterface;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
12-
use TypeError;
1312

1413
/**
1514
* Defines a plugin for Datafordeler Data.
@@ -95,7 +94,7 @@ public function getMatrikulaEntries(string $matrikulaId) : array {
9594
try {
9695
$matrikulaEntries[] = new DatafordelerMatrikula($jordstyk);
9796
}
98-
catch (TypeError $e) {
97+
catch (\TypeError $e) {
9998
// Could not create matrikula object.
10099
}
101100
}

0 commit comments

Comments
 (0)