Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/Ratchet/Session/Storage/Proxy/VirtualProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Comment thread
clue marked this conversation as resolved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Ratchet/Session/Storage/VirtualSessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Comment thread
clue marked this conversation as resolved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down