@@ -23,8 +23,8 @@ final class SatelliteBuilder implements Configurator\SatelliteBuilderInterface
23
23
private iterable $ command = [];
24
24
/** @var iterable<string> */
25
25
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 ;
28
28
/** @var iterable<array<string, string>> */
29
29
private iterable $ paths = [];
30
30
/** @var \AppendIterator<string,PackagingContract\FileInterface, \Iterator<string,PackagingContract\FileInterface>> */
@@ -67,7 +67,7 @@ public function withComposerRequire(string ...$package): self
67
67
68
68
public function withComposerFile (
69
69
PackagingContract \AssetInterface |PackagingContract \FileInterface $ composerJsonFile ,
70
- PackagingContract \AssetInterface |PackagingContract \FileInterface $ composerLockFile = null
70
+ PackagingContract \AssetInterface |PackagingContract \FileInterface | null $ composerLockFile = null
71
71
): self {
72
72
$ this ->composerJsonFile = $ composerJsonFile ;
73
73
$ this ->composerLockFile = $ composerLockFile ;
@@ -77,7 +77,7 @@ public function withComposerFile(
77
77
78
78
public function withFile (
79
79
PackagingContract \AssetInterface |PackagingContract \FileInterface $ source ,
80
- string $ destinationPath = null
80
+ ? string $ destinationPath = null
81
81
): self {
82
82
if (!$ source instanceof PackagingContract \FileInterface) {
83
83
$ source = new Packaging \VirtualFile ($ source );
@@ -92,7 +92,7 @@ public function withFile(
92
92
return $ this ;
93
93
}
94
94
95
- public function withDirectory (PackagingContract \DirectoryInterface $ source , string $ destinationPath = null ): self
95
+ public function withDirectory (PackagingContract \DirectoryInterface $ source , ? string $ destinationPath = null ): self
96
96
{
97
97
$ this ->paths [] = [$ source ->getPath (), $ destinationPath ?? $ source ->getPath ()];
98
98
0 commit comments