File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ private function json($file = null): Json
221
221
}
222
222
223
223
return Arr::get ($ this ->json , $ file , function () use ($ file ) {
224
- return $ this ->json [$ file ] = new Json ($ this ->getPath ($ file ), app ('files ' ));
224
+ return $ this ->json [$ file ] = Json:: make ($ this ->getPath ($ file ), app ('files ' ));
225
225
});
226
226
}
227
227
@@ -244,7 +244,7 @@ private function scan(string $path, string $class)
244
244
$ foundComposers = Finder::create ()->files ()->followLinks ()->in ($ path )->exclude (['node_modules ' , 'vendor ' ])->name ('composer.json ' );
245
245
246
246
foreach ($ foundComposers as $ foundComposer ) {
247
- $ composerJson = new Json ($ foundComposer , app ('files ' ));
247
+ $ composerJson = Json:: make ($ foundComposer , app ('files ' ));
248
248
249
249
if ($ composerJson ->get ('type ' ) === $ this ->packageType ) {
250
250
$ content ->put ($ composerJson ->get ('name ' ), new $ class (dirname ($ foundComposer )));
You can’t perform that action at this time.
0 commit comments