8000 bug #15729 [Kernel] Integer version constants (Tobion) · Seldaek/symfony@146dca1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 146dca1

Browse files
committed
bug symfony#15729 [Kernel] Integer version constants (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- [Kernel] Integer version constants | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a The idea of these constants is that they can be compared without using version_compare. But we want them to be compared as integers not as strings (it worked before as well because of php type juggling). They are integers semantically. Commits ------- 4b45bb9 Kernel version constants are integers to actually be comparable numerically
2 parents 6430c82 + 4b45bb9 commit 146dca1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ abstract class Kernel implements KernelInterface, TerminableInterface
6161
protected $loadClassCache;
6262

6363
const VERSION = '2.3.33-DEV';
64-
const VERSION_ID = '20333';
65-
const MAJOR_VERSION = '2';
66-
const MINOR_VERSION = '3';
67-
const RELEASE_VERSION = '33';
64+
const VERSION_ID = 20333;
65+
const MAJOR_VERSION = 2;
66+
const MINOR_VERSION = 3;
67+
const RELEASE_VERSION = 33;
6868
const EXTRA_VERSION = 'DEV';
6969

7070
/**

0 commit comments

Comments
 (0)
0