Skip to content

Commit 8735fa3

Browse files
Configure ergebnis/phpstan-rules
1 parent a250e5a commit 8735fa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4384
-4
lines changed

phpstan.neon

+12
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ parameters:
3030
switchConditionsMatchingType: true
3131
uselessCast: true
3232

33+
ergebnis:
34+
allRules: false
35+
final:
36+
enabled: true
37+
classesNotRequiredToBeAbstractOrFinal:
38+
- PHPUnit\Framework\Constraint\Count
39+
- PHPUnit\Framework\AssertionFailedError
40+
- PHPUnit\Framework\Exception
41+
- PHPUnit\Framework\TestSuite
42+
privateInFinalClass:
43+
enabled: true
44+
3345
type_coverage:
3446
declare: 100
3547
return: 100

tools/.phpstan/composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"phpstan/phpstan": "^2.1.8",
44
"phpstan/extension-installer": "^1.4.3",
55
"phpstan/phpstan-strict-rules": "^2.0.3",
6-
"tomasvotruba/type-coverage": "^2.0.2"
6+
"tomasvotruba/type-coverage": "^2.0.2",
7+
"ergebnis/phpstan-rules": "^2.8.0"
78
},
89
"config": {
910
"allow-plugins": {

tools/.phpstan/composer.lock

+73-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/.phpstan/vendor/composer/autoload_psr4.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
'TomasVotruba\\TypeCoverage\\' => array($vendorDir . '/tomasvotruba/type-coverage/src'),
1010
'PHPStan\\ExtensionInstaller\\' => array($vendorDir . '/phpstan/extension-installer/src'),
1111
'PHPStan\\' => array($vendorDir . '/phpstan/phpstan-strict-rules/src'),
12+
'Ergebnis\\PHPStan\\Rules\\' => array($vendorDir . '/ergebnis/phpstan-rules/src'),
1213
);

tools/.phpstan/vendor/composer/autoload_static.php

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class ComposerStaticInitf9e7218f71d5874b5632927df4f72bd7
2020
'PHPStan\\ExtensionInstaller\\' => 27,
2121
'PHPStan\\' => 8,
2222
),
23+
'E' =>
24+
array (
25+
'Ergebnis\\PHPStan\\Rules\\' => 23,
26+
),
2327
);
2428

2529
public static $prefixDirsPsr4 = array (
@@ -35,6 +39,10 @@ class ComposerStaticInitf9e7218f71d5874b5632927df4f72bd7
3539
array (
3640
0 => __DIR__ . '/..' . '/phpstan/phpstan-strict-rules/src',
3741
),
42+
'Ergebnis\\PHPStan\\Rules\\' =>
43+
array (
44+
0 => __DIR__ . '/..' . '/ergebnis/phpstan-rules/src',
45+
),
3846
);
3947

4048
public static $classMap = array (

tools/.phpstan/vendor/composer/installed.json

+76
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
11
{
22
"packages": [
3+
{
4+
"name": "ergebnis/phpstan-rules",
5+
"version": "2.8.0",
6+
"version_normalized": "2.8.0.0",
7+
"source": {
8+
"type": "git",
9+
"url": "https://github.com/ergebnis/phpstan-rules.git",
10+
"reference": "30e790621fbad05573ef9cd355279fff5122e080"
11+
},
12+
"dist": {
13+
"type": "zip",
14+
"url": "https://api.github.com/repos/ergebnis/phpstan-rules/zipball/30e790621fbad05573ef9cd355279fff5122e080",
15+
"reference": "30e790621fbad05573ef9cd355279fff5122e080",
16+
"shasum": ""
17+
},
18+
"require": {
19+
"ext-mbstring": "*",
20+
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
21+
"phpstan/phpstan": "^2.0.0"
22+
},
23+
"require-dev": {
24+
"doctrine/orm": "^2.20.0 || ^3.3.0",
25+
"ergebnis/composer-normalize": "^2.45.0",
26+
"ergebnis/license": "^2.6.0",
27+
"ergebnis/php-cs-fixer-config": "^6.43.0",
28+
"ergebnis/phpunit-slow-test-detector": "^2.18.0",
29+
"nette/di": "^3.1.10",
30+
"phpstan/extension-installer": "^1.4.3",
31+
"phpstan/phpstan-deprecation-rules": "^2.0.1",
32+
"phpstan/phpstan-phpunit": "^2.0.4",
33+
"phpstan/phpstan-strict-rules": "^2.0.3",
34+
"phpunit/phpunit": "^9.6.21",
35+
"psr/container": "^2.0.2",
36+
"symfony/finder": "^5.4.45",
37+
"symfony/process": "^5.4.47"
38+
},
39+
"time": "2025-02-18T11:20:05+00:00",
40+
"type": "phpstan-extension",
41+
"extra": {
42+
"phpstan": {
43+
"includes": [
44+
"rules.neon"
45+
]
46+
}
47+
},
48+
"installation-source": "dist",
49+
"autoload": {
50+
"psr-4": {
51+
"Ergebnis\\PHPStan\\Rules\\": "src/"
52+
}
53+
},
54+
"notification-url": "https://packagist.org/downloads/",
55+
"license": [
56+
"MIT"
57+
],
58+
"authors": [
59+
{
60+
"name": "Andreas Möller",
61+
"email": "[email protected]",
62+
"homepage": "https://localheinz.com"
63+
}
64+
],
65+
"description": "Provides rules for phpstan/phpstan.",
66+
"homepage": "https://github.com/ergebnis/phpstan-rules",
67+
"keywords": [
68+
"PHPStan",
69+
"phpstan-rules"
70+
],
71+
"support": {
72+
"issues": "https://github.com/ergebnis/phpstan-rules/issues",
73+
"security": "https://github.com/ergebnis/phpstan-rules/blob/main/.github/SECURITY.md",
74+
"source": "https://github.com/ergebnis/phpstan-rules"
75+
},
76+
"install-path": "../ergebnis/phpstan-rules"
77+
},
378
{
479
"name": "nette/utils",
580
"version": "v4.0.5",
@@ -315,6 +390,7 @@
315390
],
316391
"dev": true,
317392
"dev-package-names": [
393+
"ergebnis/phpstan-rules",
318394
"nette/utils",
319395
"phpstan/extension-installer",
320396
"phpstan/phpstan",

tools/.phpstan/vendor/composer/installed.php

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => '__root__',
44
'pretty_version' => 'dev-main',
55
'version' => 'dev-main',
6-
'reference' => 'e6e3d22e64db12478d21163735619bf07aa1649d',
6+
'reference' => 'ff662814b51b466b32c93fe10e75bcb7145ef305',
77
'type' => 'library',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,12 +13,21 @@
1313
'__root__' => array(
1414
'pretty_version' => 'dev-main',
1515
'version' => 'dev-main',
16-
'reference' => 'e6e3d22e64db12478d21163735619bf07aa1649d',
16+
'reference' => 'ff662814b51b466b32c93fe10e75bcb7145ef305',
1717
'type' => 'library',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),
2020
'dev_requirement' => false,
2121
),
22+
'ergebnis/phpstan-rules' => array(
23+
'pretty_version' => '2.8.0',
24+
'version' => '2.8.0.0',
25+
'reference' => '30e790621fbad05573ef9cd355279fff5122e080',
26+
'type' => 'phpstan-extension',
27+
'install_path' => __DIR__ . '/../ergebnis/phpstan-rules',
28+
'aliases' => array(),
29+
'dev_requirement' => true,
30+
),
2231
'nette/utils' => array(
2332
'pretty_version' => 'v4.0.5',
2433
'version' => '4.0.5.0',

0 commit comments

Comments
 (0)