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