Skip to content

Commit 011fb8c

Browse files
committed
Fix
1 parent 8bde854 commit 011fb8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Audit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ public function getModified(bool $json = false, int $options = 0, int $depth = 5
307307
/**
308308
* Get the Audit tags as an array.
309309
*
310-
* @return array<string>|false
310+
* @return array<string>
311311
*/
312-
public function getTags()
312+
public function getTags(): array
313313
{
314-
return preg_split('/,/', $this->tags, -1, PREG_SPLIT_NO_EMPTY);
314+
return preg_split('/,/', $this->tags, -1, PREG_SPLIT_NO_EMPTY)?: [];
315315
}
316316
}

0 commit comments

Comments
 (0)