mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
satisfying styleci, undo mysql in travis
This commit is contained in:
parent
79da73f645
commit
c7bd017bf3
@ -6,9 +6,6 @@ php:
|
||||
- 7.2
|
||||
- hhvm
|
||||
|
||||
services:
|
||||
- mysql
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: hhvm
|
||||
|
@ -32,7 +32,7 @@ class IlluminateValidationExceptionHandler implements ExceptionHandlerInterface
|
||||
public function handle(Exception $e)
|
||||
{
|
||||
$status = 422;
|
||||
|
||||
|
||||
$errors = $this->formatErrors($e->errors());
|
||||
|
||||
return new ResponseBag($status, $errors);
|
||||
|
@ -13,9 +13,8 @@ namespace Tests\Flarum\Api\Handler;
|
||||
|
||||
use Exception;
|
||||
use Flarum\Api\ExceptionHandler\IlluminateValidationExceptionHandler;
|
||||
use Illuminate\Translation\{
|
||||
Translator, ArrayLoader
|
||||
};
|
||||
use Illuminate\Translation\ArrayLoader;
|
||||
use Illuminate\Translation\Translator;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Illuminate\Validation\Factory;
|
||||
use Tests\Test\TestCase;
|
||||
|
Loading…
x
Reference in New Issue
Block a user