summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php2
-rw-r--r--Csrf/TokenStorage/NativeSessionTokenStorage.php2
-rw-r--r--Http/Authentication/CustomAuthenticationSuccessHandler.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
index 724806c..7ae2779 100644
--- a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
+++ b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
@@ -51,7 +51,7 @@ class NativeSessionTokenStorageTest extends \PHPUnit_Framework_TestCase
public function testStoreTokenInClosedSessionWithExistingSessionId()
{
- if (version_compare(PHP_VERSION, '5.4', '<')) {
+ if (PHP_VERSION_ID < 50400) {
$this->markTestSkipped('This test requires PHP 5.4 or later.');
}
diff --git a/Csrf/TokenStorage/NativeSessionTokenStorage.php b/Csrf/TokenStorage/NativeSessionTokenStorage.php
index af5931b..bb1a417 100644
--- a/Csrf/TokenStorage/NativeSessionTokenStorage.php
+++ b/Csrf/TokenStorage/NativeSessionTokenStorage.php
@@ -108,7 +108,7 @@ class NativeSessionTokenStorage implements TokenStorageInterface
private function startSession()
{
- if (version_compare(PHP_VERSION, '5.4', '>=')) {
+ if (PHP_VERSION_ID >= 50400) {
if (PHP_SESSION_NONE === session_status()) {
session_start();
}
diff --git a/Http/Authentication/CustomAuthenticationSuccessHandler.php b/Http/Authentication/CustomAuthenticationSuccessHandler.php
index abbb81b..2d1b26e 100644
--- a/Http/Authentication/CustomAuthenticationSuccessHandler.php
+++ b/Http/Authentication/CustomAuthenticationSuccessHandler.php
@@ -24,7 +24,7 @@ class CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandler
/**
* Constructor.
*
- * @param AuthenticationSuccessHandlerInterface $handler An AuthenticationFailureHandlerInterface instance
+ * @param AuthenticationSuccessHandlerInterface $handler An AuthenticationSuccessHandlerInterface instance
* @param array $options Options for processing a successful authentication attempt
* @param string $providerKey The provider key
*/