Skip to content

Commit

Permalink
Improve internal types
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Apr 12, 2024
1 parent 88a375e commit 4a80958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default class Application extends Container implements ApplicationContrac
*/
public static setInstance(container: ApplicationContract | null = null): ApplicationContract | null
{
const application = super.setInstance(container) as ApplicationContract;
const application = super.setInstance(container) as ApplicationContract | null;

// Register core application bindings
if (container !== null) {
if (application !== null) {
application.instance(CORE, this);
application.instance(CONTAINER, this);
}
Expand Down

0 comments on commit 4a80958

Please sign in to comment.