@@ -18,9 +18,10 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::validate($value, $constraint); |
| 20 | 20 | |
| 21 | - if (class_implements()) |
|
| 22 | - // Have to instantiate it. See: https://github.com/ronanguilloux/IsoCodes/issues/12 |
|
| 21 | + if (class_implements()) { |
|
| 22 | + // Have to instantiate it. See: https://github.com/ronanguilloux/IsoCodes/issues/12 |
|
| 23 | 23 | $ssn = new IsoCodes\Ssn(); |
| 24 | + } |
|
| 24 | 25 | var_dump($ssn); |
| 25 | 26 | |
| 26 | 27 | if ($value && !$ssn->validate($value)) { |