Skip to content

Commit c4a3cf7

Browse files
author
Martin Brecht-Precht
committed
Fixed an PHP 5.3 related issue.
1 parent c5b6f78 commit c4a3cf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Request/Message/Message.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function getHeaderByName($name)
6464
if (!$this->hasHeaderWithName($name)) {
6565
return null;
6666
}
67-
return $this->findHeadersByName($name)[0];
67+
$matchingHeaders = $this->findHeadersByName($name);
68+
return $matchingHeaders[0];
6869
}
6970

7071
/**

0 commit comments

Comments
 (0)