diff --git a/src/Adapter/Docker/SatelliteBuilder.php b/src/Adapter/Docker/SatelliteBuilder.php index ed119c3f..9bfe8515 100644 --- a/src/Adapter/Docker/SatelliteBuilder.php +++ b/src/Adapter/Docker/SatelliteBuilder.php @@ -77,7 +77,7 @@ public function withComposerFile( public function withFile( PackagingContract\FileInterface|PackagingContract\AssetInterface $source, - ?string $destinationPath = null + null|string $destinationPath = null ): self { if (!$source instanceof PackagingContract\FileInterface) { $source = new Packaging\VirtualFile($source); @@ -92,7 +92,7 @@ public function withFile( return $this; } - public function withDirectory(PackagingContract\DirectoryInterface $source, ?string $destinationPath = null): self + public function withDirectory(PackagingContract\DirectoryInterface $source, null|string $destinationPath = null): self { $this->paths[] = [$source->getPath(), $destinationPath ?? $source->getPath()]; diff --git a/src/Adapter/Filesystem/SatelliteBuilder.php b/src/Adapter/Filesystem/SatelliteBuilder.php index 9183dcb3..82f66361 100644 --- a/src/Adapter/Filesystem/SatelliteBuilder.php +++ b/src/Adapter/Filesystem/SatelliteBuilder.php @@ -65,7 +65,7 @@ public function withComposerFile( public function withFile( PackagingContract\FileInterface|PackagingContract\AssetInterface $source, - ?string $destinationPath = null + null|string $destinationPath = null ): self { if (!$source instanceof PackagingContract\FileInterface) { $source = new Packaging\VirtualFile($source); @@ -80,7 +80,7 @@ public function withFile( return $this; } - public function withDirectory(PackagingContract\DirectoryInterface $source, ?string $destinationPath = null): self + public function withDirectory(PackagingContract\DirectoryInterface $source, null|string $destinationPath = null): self { $this->paths[] = [$source->getPath(), $destinationPath ?? $source->getPath()]; diff --git a/src/Adapter/Tar/SatelliteBuilder.php b/src/Adapter/Tar/SatelliteBuilder.php index 5cdc2780..a48680d1 100644 --- a/src/Adapter/Tar/SatelliteBuilder.php +++ b/src/Adapter/Tar/SatelliteBuilder.php @@ -58,7 +58,7 @@ public function withComposerFile( public function withFile( PackagingContract\FileInterface|PackagingContract\AssetInterface $source, - ?string $destinationPath = null + null|string $destinationPath = null ): self { if (!$source instanceof PackagingContract\FileInterface) { $source = new Packaging\VirtualFile($source); @@ -71,7 +71,7 @@ public function withFile( return $this; } - public function withDirectory(PackagingContract\DirectoryInterface $source, ?string $destinationPath = null): self + public function withDirectory(PackagingContract\DirectoryInterface $source, null|string $destinationPath = null): self { $this->files->append(new \RecursiveIteratorIterator($source, \RecursiveIteratorIterator::SELF_FIRST)); diff --git a/src/Cloud/Auth.php b/src/Cloud/Auth.php index 8288be9a..648886df 100644 --- a/src/Cloud/Auth.php +++ b/src/Cloud/Auth.php @@ -13,7 +13,7 @@ final class Auth private string $pathName; private array $configuration; - public function __construct(?string $pathName = null) + public function __construct(null|string $pathName = null) { if (null === $pathName) { $this->pathName = getenv('HOME').'/.gyroscops/'; diff --git a/src/Plugin/SFTP/Builder/Server.php b/src/Plugin/SFTP/Builder/Server.php index 1e90198f..a375b9f7 100644 --- a/src/Plugin/SFTP/Builder/Server.php +++ b/src/Plugin/SFTP/Builder/Server.php @@ -77,7 +77,7 @@ public function withPasswordAuthentication(Node\Expr $username, Node\Expr $passw return $this; } - public function withPrivateKeyAuthentication(Node\Expr $username, Node\Expr $publicKey, Node\Expr $privateKey, ?Node\Expr $privateKeyPassphrase = null): self + public function withPrivateKeyAuthentication(Node\Expr $username, Node\Expr $publicKey, Node\Expr $privateKey, null|Node\Expr $privateKeyPassphrase = null): self { $this->username = $username; $this->publicKey = $publicKey; diff --git a/src/Service.php b/src/Service.php index 2b6593ca..6d6051ef 100644 --- a/src/Service.php +++ b/src/Service.php @@ -33,7 +33,7 @@ final class Service implements Configurator\FactoryInterface /** @var array */ private array $actionPlugins = []; - public function __construct(?ExpressionLanguage $expressionLanguage = null) + public function __construct(null|ExpressionLanguage $expressionLanguage = null) { $this->processor = new Processor(); $this->configuration = new Satellite\Configuration();