Skip to content
  • Sponsor symfony/filesystem

  • Notifications You must be signed in to change notification settings
  • Fork 51

Commit 7f3b175

Browse files
committedJan 23, 2024
Merge branch '6.3' into 6.4
* 6.3: minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2 parents 952a8cb + 9f4b59b commit 7f3b175

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎Exception/FileNotFoundException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
class FileNotFoundException extends IOException
2121
{
22-
public function __construct(string $message = null, int $code = 0, \Throwable $previous = null, string $path = null)
22+
public function __construct(?string $message = null, int $code = 0, ?\Throwable $previous = null, ?string $path = null)
2323
{
2424
if (null === $message) {
2525
if (null === $path) {

‎Exception/IOException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class IOException extends \RuntimeException implements IOExceptionInterface
2222
{
2323
private ?string $path;
2424

25-
public function __construct(string $message, int $code = 0, \Throwable $previous = null, string $path = null)
25+
public function __construct(string $message, int $code = 0, ?\Throwable $previous = null, ?string $path = null)
2626
{
2727
$this->path = $path;
2828

‎Filesystem.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function exists(string|iterable $files): bool
131131
*
132132
* @throws IOException When touch fails
133133
*/
134-
public function touch(string|iterable $files, int $time = null, int $atime = null)
134+
public function touch(string|iterable $files, ?int $time = null, ?int $atime = null)
135135
{
136136
foreach ($this->toIterable($files) as $file) {
137137
if (!($time ? self::box('touch', $file, $time, $atime) : self::box('touch', $file))) {
@@ -530,7 +530,7 @@ public function makePathRelative(string $endPath, string $startPath): string
530530
*
531531
* @throws IOException When file type is unknown
532532
*/
533-
public function mirror(string $originDir, string $targetDir, \Traversable $iterator = null, array $options = [])
533+
public function mirror(string $originDir, string $targetDir, ?\Traversable $iterator = null, array $options = [])
534534
{
535535
$targetDir = rtrim($targetDir, '/\\');
536536
$originDir = rtrim($originDir, '/\\');

‎Path.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public static function getRoot(string $path): string
254254
* @param string|null $extension if specified, only that extension is cut
255255
* off (may contain leading dot)
256256
*/
257-
public static function getFilenameWithoutExtension(string $path, string $extension = null): string
257+
public static function getFilenameWithoutExtension(string $path, ?string $extension = null): string
258258
{
259259
if ('' === $path) {
260260
return '';

0 commit comments

Comments
 (0)