Skip to content

Commit ffb7f12

Browse files
committed
Prefix all sprintf() calls
1 parent 9a5dbb6 commit ffb7f12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Factory/PsrHttpFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(
5050
$psr17Factory = match (true) {
5151
class_exists(DiscoveryPsr17Factory::class) => new DiscoveryPsr17Factory(),
5252
class_exists(NyholmPsr17Factory::class) => new NyholmPsr17Factory(),
53-
default => throw new \LogicException(sprintf('You cannot use the "%s" as no PSR-17 factories have been provided. Try running "composer require php-http/discovery psr/http-factory-implementation:*".', self::class)),
53+
default => throw new \LogicException(\sprintf('You cannot use the "%s" as no PSR-17 factories have been provided. Try running "composer require php-http/discovery psr/http-factory-implementation:*".', self::class)),
5454
};
5555

5656
$serverRequestFactory ??= $psr17Factory;

Factory/UploadedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function move(string $directory, ?string $name = null): File
5959
try {
6060
$this->psrUploadedFile->moveTo((string) $target);
6161
} catch (\RuntimeException $e) {
62-
throw new FileException(sprintf('Could not move the file "%s" to "%s" (%s).', $this->getPathname(), $target, $e->getMessage()), 0, $e);
62+
throw new FileException(\sprintf('Could not move the file "%s" to "%s" (%s).', $this->getPathname(), $target, $e->getMessage()), 0, $e);
6363
}
6464

6565
@chmod($target, 0666 & ~umask());

0 commit comments

Comments
 (0)