Skip to content

Commit 9549787

Browse files
committed
fix: remove redundant null check for string typed parameter in MessageTrait
1 parent ca1ffc0 commit 9549787

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
@@ -266,8 +266,8 @@ protected function getHeaderName(string $name): string
266266
*/
267267
public function setProtocolVersion(string $version): self
268268
{
269-
// If empty or null, keep default protocol version (usually 1.1) and do nothing.
270-
if ($version === '' || $version === null) {
269+
// If empty, keep default protocol version (usually 1.1) and do nothing.
270+
if ($version === '') {
271271
return $this;
272272
}
273273

0 commit comments

Comments
 (0)