diff --git a/composer.json b/composer.json index d00e12a2..3dfbd7e8 100644 --- a/composer.json +++ b/composer.json @@ -31,8 +31,8 @@ , "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5" , "react/event-loop": "^1.0 || ^0.5 || ^0.4" , "guzzlehttp/psr7": "^1.7|^2.0" - , "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0" - , "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0" + , "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0|^8.0" + , "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0|^7.0|^8.0" } , "require-dev": { "phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36" diff --git a/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php b/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php index 76f46e69..8e4cbb74 100644 --- a/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php +++ b/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php @@ -3,7 +3,7 @@ use Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy; if (PHP_VERSION_ID > 80200 && (new \ReflectionMethod('Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy','setId'))->hasReturnType()) { - // alias to class for Symfony 7 on PHP 8.2+ using native types like `setId(string $id): void` + // alias to class for Symfony 7 on PHP 8.2+ and Symfony 8 on PHP 8.4+ using native types like `setId(string $id): void` class_alias(__NAMESPACE__ . '\\VirtualProxyForSymfony7', __NAMESPACE__ . '\\VirtualProxy'); } elseif (PHP_VERSION_ID > 80000 && (new \ReflectionMethod('Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy','getId'))->hasReturnType()) { // alias to class for Symfony 6 on PHP 8+ using native types like `getId(): string` diff --git a/src/Ratchet/Session/Storage/Proxy/VirtualProxyForSymfony7.php b/src/Ratchet/Session/Storage/Proxy/VirtualProxyForSymfony7.php index 6c2a7756..bde1c799 100644 --- a/src/Ratchet/Session/Storage/Proxy/VirtualProxyForSymfony7.php +++ b/src/Ratchet/Session/Storage/Proxy/VirtualProxyForSymfony7.php @@ -3,7 +3,7 @@ use Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy; /** - * [internal] VirtualProxy for Symfony 7 on PHP 8.2+ using native types like `setId(string $id): void` + * [internal] VirtualProxy for Symfony 7 on PHP 8.2+ and Symfony 8 on PHP 8.4+ using native types like `setId(string $id): void` * * @internal used internally only, should not be referenced directly * @see VirtualProxy diff --git a/src/Ratchet/Session/Storage/VirtualSessionStorage.php b/src/Ratchet/Session/Storage/VirtualSessionStorage.php index 8b940312..cde4c044 100644 --- a/src/Ratchet/Session/Storage/VirtualSessionStorage.php +++ b/src/Ratchet/Session/Storage/VirtualSessionStorage.php @@ -5,7 +5,7 @@ use Ratchet\Session\Serialize\HandlerInterface; if (PHP_VERSION_ID > 80200 && (new \ReflectionMethod('Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage','save'))->hasReturnType()) { - // alias to class for Symfony 7 on PHP 8.2+ using native types like `save(): void` + // alias to class for Symfony 7 on PHP 8.2+ and Symfony 8 on PHP 8.4+ using native types like `save(): void` class_alias(__NAMESPACE__ . '\\VirtualSessionStorageForSymfony7', __NAMESPACE__ . '\\VirtualSessionStorage'); } elseif (PHP_VERSION_ID > 80000 && (new \ReflectionMethod('Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage','start'))->hasReturnType()) { // alias to class for Symfony 6 on PHP 8+ using native types like `start(): bool` diff --git a/src/Ratchet/Session/Storage/VirtualSessionStorageForSymfony7.php b/src/Ratchet/Session/Storage/VirtualSessionStorageForSymfony7.php index 911bdb35..efed73d4 100644 --- a/src/Ratchet/Session/Storage/VirtualSessionStorageForSymfony7.php +++ b/src/Ratchet/Session/Storage/VirtualSessionStorageForSymfony7.php @@ -6,7 +6,7 @@ use Ratchet\Session\Serialize\HandlerInterface; /** - * [internal] VirtualSessionStorage for Symfony 7 on PHP 8.2+ using native types like `save(): void` + * [internal] VirtualSessionStorage for Symfony 7 on PHP 8.2+ and Symfony 8 on PHP 8.4+ using native types like `save(): void` * * @internal used internally only, should not be referenced directly * @see VirtualSessionStorage