Skip to content

Commit 2c46022

Browse files
authored
Merge pull request #6 from spaze/spaze/update-dev-dependencies
Update dev dependencies
2 parents f9237bb + 5d450a9 commit 2c46022

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"require-dev": {
2323
"nette/schema": "^1.2",
2424
"php-parallel-lint/php-parallel-lint": "^1.3",
25-
"php-parallel-lint/php-console-highlighter": "^0.5.0",
26-
"phpstan/phpstan": "^1.2",
25+
"php-parallel-lint/php-console-highlighter": "^1.0",
26+
"phpstan/phpstan": "^1.9",
2727
"phpstan/phpstan-nette": "^1.0",
28-
"spaze/coding-standard": "^0.0",
29-
"spaze/encryption": "^0.4.0"
28+
"spaze/coding-standard": "^1.3",
29+
"spaze/encryption": "^1.0"
3030
},
3131
"scripts": {
3232
"lint": "vendor/bin/parallel-lint --colors src/",
@@ -43,5 +43,10 @@
4343
},
4444
"suggest": {
4545
"spaze/encryption": "Adds a support for encrypted session storage"
46+
},
47+
"config": {
48+
"allow-plugins": {
49+
"dealerdirect/phpcodesniffer-composer-installer": true
50+
}
4651
}
4752
}

src/DI/MysqlSessionHandlerExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use Nette\DI\CompilerExtension;
77
use Nette\DI\Definitions\ServiceDefinition;
8-
use Nette\DI\Statement;
8+
use Nette\DI\Definitions\Statement;
99
use Nette\Schema\Expect;
1010
use Nette\Schema\Schema;
1111
use Spaze\Encryption\Symmetric\StaticKey;

src/MysqlSessionHandler.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class MysqlSessionHandler implements SessionHandlerInterface
1919
use SmartObject;
2020

2121

22-
private Explorer $explorer;
23-
2422
private ?StaticKeyEncryption $encryptionService = null;
2523

2624
private string $tableName;
@@ -51,9 +49,9 @@ class MysqlSessionHandler implements SessionHandlerInterface
5149
public $onBeforeDataWrite;
5250

5351

54-
public function __construct(Explorer $explorer)
55-
{
56-
$this->explorer = $explorer;
52+
public function __construct(
53+
private Explorer $explorer,
54+
) {
5755
}
5856

5957

0 commit comments

Comments
 (0)