mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -14,6 +14,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
|
||||
use Doctrine\DBAL\Types\ConversionException;
|
||||
use Doctrine\DBAL\Types\DateIntervalType;
|
||||
use Exception;
|
||||
use function count;
|
||||
use function current;
|
||||
use function preg_match;
|
||||
use function reset;
|
||||
@@ -84,7 +85,7 @@ class NativeDateIntervalType extends DateIntervalType
|
||||
$current = current($strings);
|
||||
|
||||
if (is_numeric($current)) {
|
||||
$next = \next($strings);
|
||||
$next = next($strings);
|
||||
|
||||
switch ($next) {
|
||||
case 'year':
|
||||
|
Reference in New Issue
Block a user