Skip to content

Commit 9982db4

Browse files
committed
chore: use php-cs-fixer 2.19
1 parent 72ea7a9 commit 9982db4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
},
1919
"require-dev": {
2020
"symfony/var-dumper": "*",
21-
"phpunit/phpunit": "^9.5"
21+
"phpunit/phpunit": "^9.5",
22+
"friendsofphp/php-cs-fixer": "^2.19"
2223
},
2324
"autoload": {
2425
"psr-4": {
@@ -38,6 +39,7 @@
3839
"@clearCache",
3940
"./vendor/bin/phpunit --colors=always"
4041
],
42+
"fix": "./vendor/bin/php-cs-fixer fix ./",
4143
"clearCache": "rm -rf cache/*"
4244
}
4345
}

src/Path.php

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

77
class Path
88
{
9-
const DS = \DIRECTORY_SEPARATOR;
9+
public const DS = \DIRECTORY_SEPARATOR;
1010

1111
/**
1212
* path join.

src/SM3.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
*/
1212
class SM3
1313
{
14-
const IV = '7380166f4914b2b9172442d7da8a0600a96f30bc163138aae38dee4db0fb0e4e';
15-
const LEN = 512;
16-
const STR_LEN = 64;
14+
public const IV = '7380166f4914b2b9172442d7da8a0600a96f30bc163138aae38dee4db0fb0e4e';
15+
public const LEN = 512;
16+
public const STR_LEN = 64;
1717

1818
private ?string $hex = null;
1919
private ?string $binary = null;

0 commit comments

Comments
 (0)