Skip to content

Commit 3470e28

Browse files
Add types to private and internal properties
1 parent 43afd1e commit 3470e28

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public function setSession(SessionInterface $session)
766766
*/
767767
public function setSessionFactory(callable $factory): void
768768
{
769-
$this->session = $factory;
769+
$this->session = $factory(...);
770770
}
771771

772772
/**

Response.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,12 +503,6 @@ public function setStatusCode(int $code, string $text = null): static
503503
return $this;
504504
}
505505

506-
if (false === $text) {
507-
$this->statusText = '';
508-
509-
return $this;
510-
}
511-
512506
$this->statusText = $text;
513507

514508
return $this;

0 commit comments

Comments
 (0)