Skip to content

Commit

Permalink
added abstract function
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymframework committed Apr 28, 2019
1 parent cb50395 commit eaacfc8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/Concerns/ResetApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ trait ResetApplication
*/
protected $resetters = [];

/**
* @return Container
*/
abstract public function getBaseApp() : Container;


/**
* Set initial config.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Coroutine/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function getOptions($dsn, $username, $password, $driverOptions)
}
}

return array_merge($configuredOptions, static::$options);
return array_merge($configuredOptions, self::$options);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function initialize()
*
* @return \Illuminate\Container\Container
*/
public function getBaseApp()
public function getBaseApp() : Container
{
return $this->app;
}
Expand Down

0 comments on commit eaacfc8

Please sign in to comment.