Skip to content

Commit 2cf71d3

Browse files
author
Greg Bowler
authored
tweak: safely check presence of current protocol (#171)
1 parent 6f1ac12 commit 2cf71d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function withProtocolVersion($version) {
4848

4949
$clone = clone $this;
5050

51-
if(strstr($clone->protocol, "/")) {
51+
if(isset($clone->protocol) && strstr($clone->protocol, "/")) {
5252
$versionStartPos = strpos(
5353
$clone->protocol,
5454
"/"

0 commit comments

Comments
 (0)