PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php +3 -0 27.8 → trunk View file →
@@ -25,8 +25,11 @@
25 25 $this->maxLength = $maxLength;
26 26 }
27 27 public function write($string) : int
28 28 {
29 + if (!\is_string($string)) {
30 + \YoastSEO_Vendor\trigger_deprecation('guzzlehttp/psr7', '2.11', 'Passing %s to StreamInterface::write() is deprecated; guzzlehttp/psr7 3.0 requires string for $string.', \get_debug_type($string));
31 + }
29 32 $diff = $this->maxLength - $this->stream->getSize();
30 33 // Begin returning 0 when the underlying stream is too large.
31 34 if ($diff <= 0) {
32 35 return 0;