Skip to content

Commit

Permalink
Fix a regression.
Browse files Browse the repository at this point in the history
This commit ba54b43
removed
``` use Symfony\Component\Validator\Validator\ValidatorInterface; ```

That import is needed in Symfony 3 or the if will always fail and this is the result:

``` 
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Catchable Fatal Error: Argument 1 passed to Symfony\Component\Validator\Mapping\GenericMetadata::addConstraint() must be an instance of Symfony\Component\Validator\Constraint, string given, called in \vendor\symfony\symfony\src\Symfony\Component\Validator\Mapping\GenericMetadata.php on line 167 and defined" at \vendor\symfony\symfony\src\Symfony\Component\Validator\Mapping\GenericMetadata.php line 126 
```
  • Loading branch information
Filoz committed Jul 26, 2016
1 parent 2c66507 commit 477c0f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Controller/ThreadController.php
Expand Up @@ -21,6 +21,7 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Validator\Validator\ValidatorInterface;


define('HTTP_BAD_REQUEST', 400);
Expand Down

0 comments on commit 477c0f6

Please sign in to comment.