From 5d26aff7b29b98b4aa04fe9bed036103204aac0f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:05:05 +1300 Subject: [PATCH] API Explicity mark nullable parameters for PHP 8.4 --- src/Methods/CopyMethod.php | 2 +- src/Methods/SymlinkMethod.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Methods/CopyMethod.php b/src/Methods/CopyMethod.php index 38d1114..0184733 100644 --- a/src/Methods/CopyMethod.php +++ b/src/Methods/CopyMethod.php @@ -19,7 +19,7 @@ class CopyMethod implements ExposeMethod */ protected $filesystem = null; - public function __construct(Filesystem $filesystem = null) + public function __construct(?Filesystem $filesystem = null) { $this->filesystem = $filesystem ?: new Filesystem(); } diff --git a/src/Methods/SymlinkMethod.php b/src/Methods/SymlinkMethod.php index bfe9a66..706fe3c 100644 --- a/src/Methods/SymlinkMethod.php +++ b/src/Methods/SymlinkMethod.php @@ -17,7 +17,7 @@ class SymlinkMethod implements ExposeMethod */ protected $filesystem = null; - public function __construct(Filesystem $filesystem = null) + public function __construct(?Filesystem $filesystem = null) { $this->filesystem = $filesystem ?: new Filesystem(); }