Skip to content

Commit dc8de21

Browse files
committed
fix: remove redundant null check for string typed parameter in MessageTrait
1 parent 83f2108 commit dc8de21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/HTTP/MessageTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ protected function getHeaderName(string $name): string
283283
*/
284284
public function setProtocolVersion(string $version): self
285285
{
286-
// If empty or null, keep default protocol version (usually 1.1) and do nothing.
287-
if ($version === '' || $version === null) {
286+
// If empty, keep default protocol version (usually 1.1) and do nothing.
287+
if ($version === '') {
288288
return $this;
289289
}
290290

0 commit comments

Comments
 (0)