diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Database/DatabaseServiceProvider.php | 4 | ||||
-rw-r--r-- | src/Database/Db.php | 2 | ||||
-rw-r--r-- | src/Exceptions/Handlers/HandlerInterface.php | 1 | ||||
-rw-r--r-- | src/Exceptions/Handlers/Whoops.php | 5 |
4 files changed, 9 insertions, 3 deletions
diff --git a/src/Database/DatabaseServiceProvider.php b/src/Database/DatabaseServiceProvider.php index 364816cc..49fb4af5 100644 --- a/src/Database/DatabaseServiceProvider.php +++ b/src/Database/DatabaseServiceProvider.php @@ -12,7 +12,9 @@ class DatabaseServiceProvider extends ServiceProvider { $config = $this->app->get('config'); Db::connect( - 'mysql:host=' . $config->get('database')['host'] . ';dbname=' . $config->get('database')['db'] . ';charset=utf8', + 'mysql:host=' . $config->get('database')['host'] + . ';dbname=' . $config->get('database')['db'] + . ';charset=utf8', $config->get('database')['user'], $config->get('database')['pw'] ) || $this->exitOnError(); diff --git a/src/Database/Db.php b/src/Database/Db.php index 7042998f..114bd8fc 100644 --- a/src/Database/Db.php +++ b/src/Database/Db.php @@ -71,7 +71,7 @@ class Db * * @param string $query * @param array $bindings - * @return array + * @return array[] */ public static function select($query, array $bindings = []) { diff --git a/src/Exceptions/Handlers/HandlerInterface.php b/src/Exceptions/Handlers/HandlerInterface.php index 9de33e1f..838fee4a 100644 --- a/src/Exceptions/Handlers/HandlerInterface.php +++ b/src/Exceptions/Handlers/HandlerInterface.php @@ -15,7 +15,6 @@ interface HandlerInterface /** * @param Throwable $e - * @return */ public function report(Throwable $e); } diff --git a/src/Exceptions/Handlers/Whoops.php b/src/Exceptions/Handlers/Whoops.php index 807f5eb0..73352105 100644 --- a/src/Exceptions/Handlers/Whoops.php +++ b/src/Exceptions/Handlers/Whoops.php @@ -15,6 +15,11 @@ class Whoops extends Legacy implements HandlerInterface /** @var Application */ protected $app; + /** + * Whoops constructor. + * + * @param Container $app + */ public function __construct(Container $app) { $this->app = $app; |