@@ -55,7 +55,7 @@ public function withComposerRequire(string ...$package): self
5555
5656 public function withComposerFile (
5757 PackagingContract \FileInterface |PackagingContract \AssetInterface $ composerJsonFile ,
58- null | PackagingContract \FileInterface |PackagingContract \AssetInterface $ composerLockFile = null
58+ PackagingContract \FileInterface |PackagingContract \AssetInterface $ composerLockFile = null
5959 ): self {
6060 $ this ->composerJsonFile = $ composerJsonFile ;
6161 $ this ->composerLockFile = $ composerLockFile ;
@@ -65,7 +65,7 @@ public function withComposerFile(
6565
6666 public function withFile (
6767 PackagingContract \FileInterface |PackagingContract \AssetInterface $ source ,
68- null | string $ destinationPath = null
68+ string $ destinationPath = null
6969 ): self {
7070 if (!$ source instanceof PackagingContract \FileInterface) {
7171 $ source = new Packaging \VirtualFile ($ source );
@@ -80,7 +80,7 @@ public function withFile(
8080 return $ this ;
8181 }
8282
83- public function withDirectory (PackagingContract \DirectoryInterface $ source , null | string $ destinationPath = null ): self
83+ public function withDirectory (PackagingContract \DirectoryInterface $ source , string $ destinationPath = null ): self
8484 {
8585 $ this ->paths [] = [$ source ->getPath (), $ destinationPath ?? $ source ->getPath ()];
8686
@@ -162,16 +162,17 @@ public function build(): Configurator\SatelliteInterface
162162
163163 $ satellite ->dependsOn (...$ this ->composerRequire );
164164
165- $ this ->clearPipelines ();
165+ $ this ->clearPreviousFiles ();
166166
167167 return $ satellite ;
168168 }
169169
170- private function clearPipelines (): void
170+ private function clearPreviousFiles (): void
171171 {
172172 $ iterator = new \AppendIterator ();
173173
174174 $ iterator ->append (new \GlobIterator ($ this ->workdir .'/pipeline*.php ' , \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS ));
175+ $ iterator ->append (new \GlobIterator ($ this ->workdir .'/ProjectServiceContainer*.php ' , \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS ));
175176
176177 foreach ($ iterator as $ file ) {
177178 if (is_file ($ file ->getPathname ())) {
0 commit comments