PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
← All changes | includes/sdk/s3/Aws/Exception/CouldNotCreateChecksumException.php +1 -1 1.2.31.4.1 View file →
@@ -6,9 +6,9 @@
6 6 use Dudlewebs\WPMCS\s3\Aws\MonitoringEventsInterface;
7 7 class CouldNotCreateChecksumException extends \RuntimeException implements MonitoringEventsInterface
8 8 {
9 9 use HasMonitoringEventsTrait;
10 - public function __construct($algorithm, \Exception $previous = null)
10 + public function __construct($algorithm, ?\Exception $previous = null)
11 11 {
12 12 $prefix = $algorithm === 'md5' ? "An" : "A";
13 13 parent::__construct("{$prefix} {$algorithm} checksum could not be " . "calculated for the provided upload body, because it was not " . "seekable. To prevent this error you can either 1) include the " . "ContentMD5 or ContentSHA256 parameters with your request, 2) " . "use a seekable stream for the body, or 3) wrap the non-seekable " . "stream in a GuzzleHttp\\Psr7\\CachingStream object. You " . "should be careful though and remember that the CachingStream " . "utilizes PHP temp streams. This means that the stream will be " . "temporarily stored on the local disk.", 0, $previous);
14 14 }