Skip to content

Commit b24e0ec

Browse files
authored
Merge pull request #157 from clue-labs/nullable-v3
Improve PHP 8.4+ support by avoiding implicitly nullable types
2 parents 2cec53c + a4d4773 commit b24e0ec

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
],
1313
"require": {
1414
"php": ">=7.1",
15-
"clue/redis-protocol": "0.3.*",
15+
"clue/redis-protocol": "^0.3.2",
1616
"evenement/evenement": "^3.0 || ^2.0 || ^1.0",
1717
"react/event-loop": "^1.2",
18-
"react/promise": "^3",
19-
"react/socket": "^1.15"
18+
"react/promise": "^3.2",
19+
"react/socket": "^1.16"
2020
},
2121
"require-dev": {
2222
"phpstan/phpstan": "1.10.15 || 1.4.10",
2323
"phpunit/phpunit": "^9.6 || ^7.5",
24-
"react/async": "^4.2 || ^3.2"
24+
"react/async": "^4.3 || ^3.2"
2525
},
2626
"autoload": {
2727
"psr-4": {

src/Io/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Factory
2727
* @param ?ConnectorInterface $connector
2828
* @param ?ProtocolFactory $protocol
2929
*/
30-
public function __construct(ConnectorInterface $connector = null, ProtocolFactory $protocol = null)
30+
public function __construct(?ConnectorInterface $connector = null, ?ProtocolFactory $protocol = null)
3131
{
3232
$this->connector = $connector ?: new Connector();
3333
$this->protocol = $protocol ?: new ProtocolFactory();

src/RedisClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class RedisClient extends EventEmitter
5454
/** @var array<string,bool> */
5555
private $psubscribed = [];
5656

57-
public function __construct(string $url, ConnectorInterface $connector = null)
57+
public function __construct(string $url, ?ConnectorInterface $connector = null)
5858
{
5959
$args = [];
6060
\parse_str((string) \parse_url($url, \PHP_URL_QUERY), $args);

0 commit comments

Comments
 (0)