aboutsummaryrefslogtreecommitdiff
path: root/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-10-10 16:01:54 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-10-10 16:01:54 +0000
commit468f464b486e2ed0527cfd7e80113d37cdd4d07c (patch)
tree60b3243c3796d6a21a349ee7ae8e5c76d5d2717a /vendor/guzzlehttp/guzzle/src/BodySummarizer.php
parent7fafad2ac2466b9a17b802d9b29d10056b439e29 (diff)
parent124c4e254250ebac336392711b32dfd6fa3caef3 (diff)
Merge branch 'feature/guzzle-7.9.2' into 'master'
Update Guzzle to 7.9.2 See merge request tt-rss/tt-rss!70
Diffstat (limited to 'vendor/guzzlehttp/guzzle/src/BodySummarizer.php')
-rw-r--r--vendor/guzzlehttp/guzzle/src/BodySummarizer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/guzzlehttp/guzzle/src/BodySummarizer.php b/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
index 6eca94ef9..761506dd0 100644
--- a/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
+++ b/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
@@ -11,7 +11,7 @@ final class BodySummarizer implements BodySummarizerInterface
*/
private $truncateAt;
- public function __construct(int $truncateAt = null)
+ public function __construct(?int $truncateAt = null)
{
$this->truncateAt = $truncateAt;
}
@@ -22,7 +22,7 @@ final class BodySummarizer implements BodySummarizerInterface
public function summarize(MessageInterface $message): ?string
{
return $this->truncateAt === null
- ? \GuzzleHttp\Psr7\Message::bodySummary($message)
- : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);
+ ? Psr7\Message::bodySummary($message)
+ : Psr7\Message::bodySummary($message, $this->truncateAt);
}
}