Skip to content

Commit

Permalink
fix: 🐛 Make MSH getTriggerEvent return accept bool (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry11996 authored Aug 8, 2023
1 parent b0713e6 commit 2609721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HL7/Segments/MSH.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function getMessageType(int $position = 9): string
return (string) $typeField;
}

public function getTriggerEvent(int $position = 9): string
public function getTriggerEvent(int $position = 9): string|bool
{
$triggerField = $this->getField($position);
if (!empty($triggerField[1]) && is_array($triggerField)) {
Expand Down

0 comments on commit 2609721

Please sign in to comment.