@@ -49,7 +49,7 @@ protected function merge(array $source, array $target, string $filename): array
4949 return ArrSupport::merge ($ source , $ target );
5050 }
5151
52- protected function process (string $ target_path , string $ filename , string $ locale = null ): void
52+ protected function process (string $ target_path , string $ filename , ? string $ locale = null ): void
5353 {
5454 $ source = $ this ->source ($ filename );
5555 $ target = $ this ->load ($ target_path );
@@ -95,7 +95,7 @@ protected function getFallbackValue(array $source, array $target, string $key)
9595 return Arr::get ($ target , $ key ) ?: Arr::get ($ source , $ key , []);
9696 }
9797
98- protected function getTargetPath (string $ path = null ): string
98+ protected function getTargetPath (? string $ path = null ): string
9999 {
100100 if ($ path = $ this ->app ->cleanPath ($ path )) {
101101 $ path = '/ ' . $ path ;
@@ -104,7 +104,7 @@ protected function getTargetPath(string $path = null): string
104104 return $ this ->app ->path ($ this ->target_path . $ path );
105105 }
106106
107- protected function getSourcePath (string $ filename = null ): string
107+ protected function getSourcePath (? string $ filename = null ): string
108108 {
109109 return $ this ->app ->sourcePath ($ filename );
110110 }
@@ -165,7 +165,7 @@ protected function loadFilesystem(Filesystem|Base|string $filesystem): Filesyste
165165 return $ filesystem ::make ()->application ($ this ->app );
166166 }
167167
168- protected function store (string $ path , array |string |Stringable $ content , string $ source_filename = null , bool $ is_simple = false ): void
168+ protected function store (string $ path , array |string |Stringable $ content , ? string $ source_filename = null , bool $ is_simple = false ): void
169169 {
170170 $ stub = $ this ->getStubPath ($ source_filename );
171171
0 commit comments