Skip to content

Commit 7cec359

Browse files
Allow null for narrow and detailed fields; minor clean up
1 parent ecce1ef commit 7cec359

3 files changed

Lines changed: 5 additions & 22 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
composer.lock
12
/vendor/
23
/debug/
34
.vscode

composer.lock

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/IscedFieldsOfStudy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ public function getBroad(string $code): string
168168
*
169169
* @param string $code The code of the field of study to check.
170170
*
171-
* @return string
171+
* @return string|null
172172
*/
173-
public function getNarrow(string $code): string
173+
public function getNarrow(string $code): ?string
174174
{
175175
return $this->get($code)[self::NARROW];
176176
}
@@ -180,9 +180,9 @@ public function getNarrow(string $code): string
180180
*
181181
* @param string $code The code of the field of study to check.
182182
*
183-
* @return string
183+
* @return string|null
184184
*/
185-
public function getDetailed(string $code): string
185+
public function getDetailed(string $code): ?string
186186
{
187187
return $this->get($code)[self::DETAILED];
188188
}

0 commit comments

Comments
 (0)