Skip to content

Commit 99abb93

Browse files
authored
Update all deps
1 parent 77b9fd7 commit 99abb93

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ phpmd-ci: prepare-ci ## Run PHP Mess Detector (CI)
1717
PHPMD_FORMAT="github" $(MAKE) phpmd
1818
.PHONY: phpmd phpmd-ci
1919

20-
PHPSTAN_LEVEL ?= max
20+
PHPSTAN_LEVEL ?= 9
2121
phpstan: ## Run PHPStan
2222
vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1 --level=$(PHPSTAN_LEVEL) $(EXTRA_ARGS) src tests
2323
phpstan-ci: prepare-ci ## Run PHPStan (CI)

composer.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
"type": "phpcodesniffer-standard",
55
"license": "MIT",
66
"require": {
7-
"php": "^8.3",
8-
"squizlabs/php_codesniffer": "^3.8",
9-
"slevomat/coding-standard": "^8.14",
7+
"php": "^8.4",
8+
"squizlabs/php_codesniffer": "^4.0",
9+
"slevomat/coding-standard": "^8.24",
1010
"phpmd/phpmd": "^2.15",
11-
"phpstan/phpstan": "^1.10",
12-
"phpstan/phpstan-phpunit": "^1.3",
13-
"jangregor/phpstan-prophecy": "^1.0",
14-
"phpspec/prophecy-phpunit": "^2.1",
15-
"phpunit/phpunit": "^10.5 || ^11.0"
11+
"phpstan/phpstan": "^2.1",
12+
"phpstan/phpstan-phpunit": "^2.0",
13+
"phpstan/phpstan-symfony": "^2.0",
14+
"jangregor/phpstan-prophecy": "^2.2",
15+
"phpspec/prophecy-phpunit": "^2.4",
16+
"phpunit/phpunit": "^11.0 || ^12.4"
1617
},
1718
"require-dev": {
1819
"roave/security-advisories": "dev-latest"

lib/phpcs/rules/base.xml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,26 @@
2626
<!-- Forbid alias functions, i.e. `sizeof()`, `delete()` -->
2727
<rule ref="Generic.PHP.ForbiddenFunctions">
2828
<properties>
29-
<property name="forbiddenFunctions" type="array"
30-
value="
31-
chop => rtrim,
32-
close => closedir,
33-
delete => unset,
34-
doubleval => floatval,
35-
fputs => fwrite,
36-
ini_alter => ini_set,
37-
is_double => is_float,
38-
is_integer => is_int,
39-
is_long => is_int,
40-
is_null => null,
41-
is_real => is_float,
42-
is_writeable => is_writable,
43-
join => implode,
44-
key_exists => array_key_exists,
45-
pos => current,
46-
show_source => highlight_file,
47-
sizeof => count,
48-
strchr => strstr
49-
"/>
29+
<property name="forbiddenFunctions" type="array">
30+
<element key="chop" value="rtrim" />
31+
<element key="close" value="closedir" />
32+
<element key="delete" value="unset" />
33+
<element key="doubleval" value="floatval" />
34+
<element key="fputs" value="fwrite" />
35+
<element key="ini_alter" value="ini_set" />
36+
<element key="is_double" value="is_float" />
37+
<element key="is_integer" value="is_int" />
38+
<element key="is_long" value="is_int" />
39+
<element key="is_null" value="null" />
40+
<element key="is_real" value="is_float" />
41+
<element key="is_writeable" value="is_writable" />
42+
<element key="join" value="implode" />
43+
<element key="key_exists" value="array_key_exists" />
44+
<element key="pos" value="current" />
45+
<element key="show_source" value="highlight_file" />
46+
<element key="sizeof" value="count" />
47+
<element key="strchr" value="strstr" />
48+
</property>
5049
</properties>
5150
</rule>
5251
<!-- Forbid useless inline string concatenation -->

lib/phpcs/rules/slevomat.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@
235235
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
236236
</rule>
237237
<!-- Checks format of union type hints. -->
238-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
238+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
239239
<properties>
240240
<!-- Union type must be separated by | without spaces -->
241-
<property name="withSpaces" value="no"/>
241+
<property name="withSpacesAroundOperators" value="no"/>
242242
</properties>
243243
</rule>
244244
<!-- Reports useless @var annotation (or whole documentation comment) for constants because the type of constant is always clear. -->

0 commit comments

Comments
 (0)