Skip to content

Commit 33ef37f

Browse files
committed
:octocat: dependency update
1 parent 7c074a1 commit 33ef37f

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
},
3838
"require-dev": {
3939
"phpmd/phpmd": "^2.15",
40-
"phpstan/phpstan": "^1.12",
41-
"phpstan/phpstan-deprecation-rules": "^1.2",
40+
"phpstan/phpstan": "^2.1.17",
41+
"phpstan/phpstan-deprecation-rules": "^2.0",
4242
"phpunit/phpunit": "^10.5",
43-
"slevomat/coding-standard": "^8.15",
44-
"squizlabs/php_codesniffer": "^3.11"
43+
"slevomat/coding-standard": "^8.19",
44+
"squizlabs/php_codesniffer": "^3.13"
4545
},
4646
"suggest": {
4747
},

phpcs.xml.dist

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0"?>
2-
<ruleset name="php-qrcode-cs"
2+
<ruleset name="chillerlan-cs"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
5-
<description>php-qrcode rules for phpcs</description>
5+
<description>chillerlan rules for phpcs</description>
66

7-
<!--<file>examples</file>-->
7+
<file>examples</file>
88
<file>src</file>
99
<file>tests</file>
1010

@@ -108,13 +108,10 @@
108108

109109
<rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable">
110110
<exclude-pattern>examples</exclude-pattern>
111-
<exclude-pattern>src/Storage/SessionStorage.php</exclude-pattern>
112-
<exclude-pattern>tests/Storage/SessionStorageTest.php</exclude-pattern>
113111
</rule>
114112

115-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
113+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
116114
<properties>
117-
<property name="withSpaces" value="no"/>
118115
<property name="shortNullable" value="no"/>
119116
<property name="nullPosition" value="last"/>
120117
</properties>
@@ -147,9 +144,7 @@
147144
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
148145
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
149146
<!--<rule ref="Generic.Formatting.MultipleStatementAlignment"/>-->
150-
<rule ref="Generic.Formatting.NoSpaceAfterCast"/>
151-
<rule ref="Generic.Functions.CallTimePassByReference"/>
152-
<!--<rule ref="Generic.NamingConventions.InterfaceNameSuffix"/>-->
147+
<rule ref="Generic.NamingConventions.InterfaceNameSuffix"/>
153148
<rule ref="Generic.NamingConventions.TraitNameSuffix"/>
154149
<rule ref="Generic.PHP.BacktickOperator"/>
155150
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag"/>
@@ -183,7 +178,6 @@
183178

184179

185180
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
186-
<rule ref="Squiz.Classes.DuplicateProperty"/>
187181
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
188182
<rule ref="Squiz.Classes.SelfMemberReference"/>
189183
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
@@ -241,6 +235,12 @@
241235
<exclude-pattern>examples</exclude-pattern>
242236
</rule>
243237

238+
<rule ref="Generic.Formatting.SpaceAfterCast">
239+
<properties>
240+
<property name="spacing" value="0"/>
241+
</properties>
242+
</rule>
243+
244244
<rule ref="Generic.Formatting.SpaceAfterNot">
245245
<properties>
246246
<property name="spacing" value="0" />

src/Crypto.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public static function sha512(string $data, bool $binary = false):string{
7070
* @see \Random\Randomizer - PHP >= 8.3
7171
*
7272
* @noinspection PhpFullyQualifiedNameUsageInspection
73-
* @SuppressWarnings(PHPMD.MissingImport)
7473
*/
7574
public static function randomString(int $length, string $keyspace = self::ASCII_COMMON_PW):string{
7675

0 commit comments

Comments
 (0)