Skip to content

Commit 7d436e0

Browse files
authored
change closures function to arrow function in registerBaseBindings (#46351)
1 parent e2a32f2 commit 7d436e0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,9 @@ protected function registerBaseBindings()
228228
$this->instance(Container::class, $this);
229229
$this->singleton(Mix::class);
230230

231-
$this->singleton(PackageManifest::class, function () {
232-
return new PackageManifest(
233-
new Filesystem, $this->basePath(), $this->getCachedPackagesPath()
234-
);
235-
});
231+
$this->singleton(PackageManifest::class, fn () => new PackageManifest(
232+
new Filesystem, $this->basePath(), $this->getCachedPackagesPath()
233+
));
236234
}
237235

238236
/**

0 commit comments

Comments
 (0)