Skip to content

Commit dd3f000

Browse files
committed
remove testing check
1 parent 5f0d805 commit dd3f000

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Functions/AbstractFunction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function postgres()
2525
throw new Exception('Postgres has not been implemented for this function.');
2626
}
2727

28+
/**
29+
* @return string
30+
*/
2831
public function getName(): string
2932
{
3033
return Str::snake(class_basename($this));

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function boot()
2727
*/
2828
protected function registerFunctions(): void
2929
{
30-
if ($this->app->environment('testing') && $this->app['db']->getDriverName() == 'sqlite') {
30+
if ($this->app['db']->getDriverName() == 'sqlite') {
3131
(new FunctionRegistrar)->register($this->app['db']->getPdo(), config('sqlite-functions.driver_to_mimic'));
3232
}
3333
}

0 commit comments

Comments
 (0)