Skip to content

Commit 8b34ded

Browse files
committed
tweaks
1 parent 6c28d5c commit 8b34ded

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Component/HttpFoundation/Exception/InvalidTrustedHeaderException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ final class InvalidTrustedHeaderException extends \InvalidArgumentException impl
3131
public function __construct($header, $value, $message)
3232
{
3333
parent::__construct($message);
34-
3534
$this->header = $header;
3635
$this->value = $value;
3736
}

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ public function getContent($asResource = false)
15211521
{
15221522
$currentContentIsResource = is_resource($this->content);
15231523
if (PHP_VERSION_ID < 50600 && false === $this->content) {
1524-
throw new \LogicException('getContent() can only be called once when using the resource return type and PHP below 5.6.');
1524+
throw new \LogicException(sprintf('Method %s can only be called once when using the resource return type and PHP below 5.6.', __METHOD__));
15251525
}
15261526

15271527
if (true === $asResource) {

0 commit comments

Comments
 (0)