8000 Change the condition order so we know constant exists · symfony/symfony@cfb86c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfb86c0

Browse files
committed
Change the condition order so we know constant exists
1 parent 426a0cb commit cfb86c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function __construct(array $options = array(), $handler = null, MetadataB
104104
{
105105
$this->setMetadataBag($metaBag);
106106

107-
if (\PHP_SESSION_ACTIVE === session_status() && \PHP_VERSION_ID >= 70200) {
107+
if (PHP_VERSION_ID >= 70200 && \PHP_SESSION_ACTIVE === session_status()) {
108108
if (!empty($options) || null !== $handler) {
109109
throw new \LogicException('Cannot change options or handler of an active session');
110110
}

0 commit comments

Comments
 (0)
0