diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-10-10 16:01:54 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-10-10 16:01:54 +0000 |
| commit | 468f464b486e2ed0527cfd7e80113d37cdd4d07c (patch) | |
| tree | 60b3243c3796d6a21a349ee7ae8e5c76d5d2717a /vendor/guzzlehttp/psr7/src/UploadedFile.php | |
| parent | 7fafad2ac2466b9a17b802d9b29d10056b439e29 (diff) | |
| parent | 124c4e254250ebac336392711b32dfd6fa3caef3 (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/psr7/src/UploadedFile.php')
| -rw-r--r-- | vendor/guzzlehttp/psr7/src/UploadedFile.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/guzzlehttp/psr7/src/UploadedFile.php b/vendor/guzzlehttp/psr7/src/UploadedFile.php index b1521bcf8..9c9ea49fb 100644 --- a/vendor/guzzlehttp/psr7/src/UploadedFile.php +++ b/vendor/guzzlehttp/psr7/src/UploadedFile.php @@ -64,8 +64,8 @@ class UploadedFile implements UploadedFileInterface $streamOrFile, ?int $size, int $errorStatus, - string $clientFilename = null, - string $clientMediaType = null + ?string $clientFilename = null, + ?string $clientMediaType = null ) { $this->setError($errorStatus); $this->size = $size; @@ -113,7 +113,7 @@ class UploadedFile implements UploadedFileInterface $this->error = $error; } - private function isStringNotEmpty($param): bool + private static function isStringNotEmpty($param): bool { return is_string($param) && false === empty($param); } @@ -163,7 +163,7 @@ class UploadedFile implements UploadedFileInterface { $this->validateActive(); - if (false === $this->isStringNotEmpty($targetPath)) { + if (false === self::isStringNotEmpty($targetPath)) { throw new InvalidArgumentException( 'Invalid path provided for move operation; must be a non-empty string' ); |