updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -3,18 +3,21 @@
namespace Doctrine\DBAL;
use function str_replace;
use function strtolower;
use function strtoupper;
use function version_compare;
/**
* Class to store and retrieve the version of Doctrine.
*
* @internal
* @deprecated Refrain from checking the DBAL version at runtime.
*/
class Version
{
/**
* Current Doctrine Version.
*/
public const VERSION = '2.9.0';
public const VERSION = '2.13.9';
/**
* Compares a Doctrine version with the current one.
@@ -25,9 +28,8 @@ class Version
*/
public static function compare($version)
{
$currentVersion = str_replace(' ', '', strtolower(self::VERSION));
$version = str_replace(' ', '', $version);
$version = str_replace(' ', '', strtoupper($version));
return version_compare($version, $currentVersion);
return version_compare($version, self::VERSION);
}
}