@@ -23,8 +23,8 @@ final class SatelliteBuilder implements Configurator\SatelliteBuilderInterface
2323 private iterable $ command = [];
2424 /** @var iterable<string> */
2525 private iterable $ tags = [];
26- private null | PackagingContract \AssetInterface |PackagingContract \FileInterface $ composerJsonFile = null ;
27- private null | PackagingContract \AssetInterface |PackagingContract \FileInterface $ composerLockFile = null ;
26+ private PackagingContract \AssetInterface |PackagingContract \FileInterface | null $ composerJsonFile = null ;
27+ private PackagingContract \AssetInterface |PackagingContract \FileInterface | null $ composerLockFile = null ;
2828 /** @var iterable<array<string, string>> */
2929 private iterable $ paths = [];
3030 /** @var \AppendIterator<string,PackagingContract\FileInterface, \Iterator<string,PackagingContract\FileInterface>> */
@@ -67,7 +67,7 @@ public function withComposerRequire(string ...$package): self
6767
6868 public function withComposerFile (
6969 PackagingContract \AssetInterface |PackagingContract \FileInterface $ composerJsonFile ,
70- PackagingContract \AssetInterface |PackagingContract \FileInterface $ composerLockFile = null
70+ PackagingContract \AssetInterface |PackagingContract \FileInterface | null $ composerLockFile = null
7171 ): self {
7272 $ this ->composerJsonFile = $ composerJsonFile ;
7373 $ this ->composerLockFile = $ composerLockFile ;
@@ -77,7 +77,7 @@ public function withComposerFile(
7777
7878 public function withFile (
7979 PackagingContract \AssetInterface |PackagingContract \FileInterface $ source ,
80- string $ destinationPath = null
80+ ? string $ destinationPath = null
8181 ): self {
8282 if (!$ source instanceof PackagingContract \FileInterface) {
8383 $ source = new Packaging \VirtualFile ($ source );
@@ -92,7 +92,7 @@ public function withFile(
9292 return $ this ;
9393 }
9494
95- public function withDirectory (PackagingContract \DirectoryInterface $ source , string $ destinationPath = null ): self
95+ public function withDirectory (PackagingContract \DirectoryInterface $ source , ? string $ destinationPath = null ): self
9696 {
9797 $ this ->paths [] = [$ source ->getPath (), $ destinationPath ?? $ source ->getPath ()];
9898
0 commit comments