cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:37:57 +01:00
parent c8195e6df5
commit a9188355c5
193 changed files with 306 additions and 63 deletions

View File

@@ -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':