Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions tools/.phpstan/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 16 additions & 15 deletions tools/.phpstan/vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@
},
{
"name": "phpstan/phpstan",
"version": "2.2.8",
"version_normalized": "2.2.8.0",
"version": "2.2.9",
"version_normalized": "2.2.9.0",
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/e285254e60f33c21902efef4a926ca0987c06804",
"reference": "e285254e60f33c21902efef4a926ca0987c06804",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/13d6b4f347bad222da436580c8304fa6f83e6bd0",
"reference": "13d6b4f347bad222da436580c8304fa6f83e6bd0",
"shasum": ""
},
"require": {
Expand All @@ -143,7 +143,7 @@
"conflict": {
"phpstan/phpstan-shim": "*"
},
"time": "2026-08-04T22:21:45+00:00",
"time": "2026-08-22T07:38:16+00:00",
"bin": [
"phpstan",
"phpstan.phar"
Expand Down Expand Up @@ -251,17 +251,17 @@
},
{
"name": "tomasvotruba/type-coverage",
"version": "2.3.0",
"version_normalized": "2.3.0.0",
"version": "2.3.4",
"version_normalized": "2.3.4.0",
"source": {
"type": "git",
"url": "https://github.com/TomasVotruba/type-coverage.git",
"reference": "7ba48c1bf3bbb7ffe99caacc7017bae5ee72d644"
"reference": "7b4aec57af15514dac9a3c5a9671da501444ecd0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/TomasVotruba/type-coverage/zipball/7ba48c1bf3bbb7ffe99caacc7017bae5ee72d644",
"reference": "7ba48c1bf3bbb7ffe99caacc7017bae5ee72d644",
"url": "https://api.github.com/repos/TomasVotruba/type-coverage/zipball/7b4aec57af15514dac9a3c5a9671da501444ecd0",
"reference": "7b4aec57af15514dac9a3c5a9671da501444ecd0",
"shasum": ""
},
"require": {
Expand All @@ -270,23 +270,24 @@
"webmozart/assert": "^1.11 || ^2.1"
},
"require-dev": {
"doctrine/collections": "^2.3",
"phpstan/extension-installer": "^1.4",
"phpunit/phpunit": "^13.2",
"rector/jack": "^1.0",
"rector/jack": "^1.1",
"rector/rector": "^2.5",
"shipmonk/composer-dependency-analyser": "^1.8",
"symfony/dom-crawler": "^8.1",
"symfony/form": "^8.1",
"symplify/easy-coding-standard": "^13.2",
"tomasvotruba/unused-public": "^2.2",
"tracy/tracy": "^2.12"
},
"time": "2026-07-29T20:32:37+00:00",
"time": "2026-08-18T07:48:32+00:00",
"type": "phpstan-extension",
"extra": {
"phpstan": {
"includes": [
"config/extension.neon",
"packages/type-perfect/config/extension.neon"
"config/extension.neon"
]
}
},
Expand All @@ -308,7 +309,7 @@
],
"support": {
"issues": "https://github.com/TomasVotruba/type-coverage/issues",
"source": "https://github.com/TomasVotruba/type-coverage/tree/2.3.0"
"source": "https://github.com/TomasVotruba/type-coverage/tree/2.3.4"
},
"funding": [
{
Expand Down
16 changes: 8 additions & 8 deletions tools/.phpstan/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => '12.5.x-dev',
'version' => '12.5.9999999.9999999-dev',
'reference' => '20cfcbbb9101c76dadab54f7d0bd86794c5ff1e4',
'reference' => '9e1e76dcb8e3a5d4cbd9dca3b24b98c2729b2d06',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => '12.5.x-dev',
'version' => '12.5.9999999.9999999-dev',
'reference' => '20cfcbbb9101c76dadab54f7d0bd86794c5ff1e4',
'reference' => '9e1e76dcb8e3a5d4cbd9dca3b24b98c2729b2d06',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -38,9 +38,9 @@
'dev_requirement' => true,
),
'phpstan/phpstan' => array(
'pretty_version' => '2.2.8',
'version' => '2.2.8.0',
'reference' => 'e285254e60f33c21902efef4a926ca0987c06804',
'pretty_version' => '2.2.9',
'version' => '2.2.9.0',
'reference' => '13d6b4f347bad222da436580c8304fa6f83e6bd0',
'type' => 'library',
'install_path' => __DIR__ . '/../phpstan/phpstan',
'aliases' => array(),
Expand All @@ -56,9 +56,9 @@
'dev_requirement' => true,
),
'tomasvotruba/type-coverage' => array(
'pretty_version' => '2.3.0',
'version' => '2.3.0.0',
'reference' => '7ba48c1bf3bbb7ffe99caacc7017bae5ee72d644',
'pretty_version' => '2.3.4',
'version' => '2.3.4.0',
'reference' => '7b4aec57af15514dac9a3c5a9671da501444ecd0',
'type' => 'phpstan-extension',
'install_path' => __DIR__ . '/../tomasvotruba/type-coverage',
'aliases' => array(),
Expand Down
Binary file modified tools/.phpstan/vendor/phpstan/phpstan/phpstan.phar
Binary file not shown.
26 changes: 13 additions & 13 deletions tools/.phpstan/vendor/phpstan/phpstan/phpstan.phar.asc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmpyZb8ACgkQUcZzBf/C
5cCGHg//R1lYZ3eZiZ5Ikj1yHXZcMJ+BtlaZ5C18CCUUcGZ/RrIOSdj+uAYe4riJ
1DBfQ3ofrI0DX4+jeEiwgYyGv1Afh1OdP+2bgZrZbF/5usBAD+NYODm1hc8rhLhl
PnOkTlc9wcCDix4fg/msrgPZwEq2oRJfHkgTMLW7wrLRpJJKlE4YMgV+ytxpEFHV
jSYYMnCwz0eGNz38DgSEaVdLNuMtFP4o1dXnjuQUbJG7St0EIL8+wNSVtrnQLPk6
f7PZamSFkM+TfCiarOygiS0kb3eJmW6aX6PU/UrGePF8/p3snG4ekTe+/muvsFsK
Psg6DikEjhJ1yiV7ywM5dCokW5gP6HbZhVHxcRQlay1Fw6bs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7UXv9tDsEc9ye1iLcWo090Yrpe5aYBgnw=
=2Zmb
-----END PGP SIGNATURE-----
40 changes: 13 additions & 27 deletions tools/.phpstan/vendor/tomasvotruba/type-coverage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ The package is available on PHP 7.2+.

With [PHPStan extension installer](https://github.com/phpstan/extension-installer), everything is ready to run.

Without it, include the config manually:

```yaml
# phpstan.neon
includes:
- vendor/tomasvotruba/type-coverage/config/extension.neon
```

<br>

Enable each item on their own:

```yaml
Expand Down Expand Up @@ -167,14 +177,13 @@ These rules ship with the package [installed above](#install), there is nothing

Every rule is opt-in and disabled by default, so you can pick the ones that fit your project. See [Configure](#configure) below for the full list.

The 3 checks below are the simplest ones to start with:
The 2 checks below are the simplest ones to start with:

```yaml
parameters:
type_perfect:
no_isset_on_object: true
no_empty_on_object: true
no_array_access_on_object: true
no_param_type_removal: true
```

Expand Down Expand Up @@ -211,29 +220,7 @@ if (! $this->someType instanceof SomeType) {

<br>

Second rule (`no_array_access_on_object`) checks we use explicit object methods over magic array access:

```php
$article = new Article();

$id = $article['id'];
// we have no idea, what the type is
```

:no_good:


```php
$id = $article->getId();
// we know the type is int
```

:heavy_check_mark:

<br>

Last rule (`no_param_type_removal`) checks that all interface implementations follow the same method signature as the interface:
Second rule (`no_param_type_removal`) checks that all interface implementations follow the same method signature as the interface:

```php
interface SomeInterface
Expand Down Expand Up @@ -271,10 +258,9 @@ You can enable them all at once:
```yaml
parameters:
type_perfect:
# the 3 checks above
# the 2 checks above
no_isset_on_object: true
no_empty_on_object: true
no_array_access_on_object: true
no_param_type_removal: true

no_mixed_property: true
Expand Down
14 changes: 9 additions & 5 deletions tools/.phpstan/vendor/tomasvotruba/type-coverage/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
"rector/rector": "^2.5",
"tracy/tracy": "^2.12",
"tomasvotruba/unused-public": "^2.2",
"rector/jack": "^1.0",
"rector/jack": "^1.1",
"shipmonk/composer-dependency-analyser": "^1.8",
"symfony/dom-crawler": "^8.1"
"symfony/dom-crawler": "^8.1",
"doctrine/collections": "^2.3",
"symfony/form": "^8.1"
},
"autoload": {
"psr-4": {
Expand All @@ -30,7 +32,10 @@
"psr-4": {
"TomasVotruba\\TypeCoverage\\Tests\\": "tests",
"Rector\\TypePerfect\\Tests\\": "packages/type-perfect/tests"
}
},
"classmap": [
"stubs"
]
},
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
Expand All @@ -47,8 +52,7 @@
"extra": {
"phpstan": {
"includes": [
"config/extension.neon",
"packages/type-perfect/config/extension.neon"
"config/extension.neon"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- ../packages/type-perfect/config/extension.neon

parametersSchema:
# see https://doc.nette.org/en/schema for configuration
type_coverage: structure([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ parametersSchema:
no_mixed_caller: bool()

no_param_type_removal: bool()
no_array_access_on_object: bool()
no_isset_on_object: bool()
no_empty_on_object: bool()
])
Expand All @@ -28,7 +27,6 @@ parameters:
no_mixed_caller: false

no_param_type_removal: false
no_array_access_on_object: false
no_isset_on_object: false
no_empty_on_object: false

Expand All @@ -38,9 +36,6 @@ rules:
# no_param_type_removal
- Rector\TypePerfect\Rules\NoParamTypeRemovalRule

# no_array_access_on_object
- Rector\TypePerfect\Rules\NoArrayAccessOnObjectRule

# no_isset_on_object
- Rector\TypePerfect\Rules\NoIssetOnObjectRule

Expand Down
Loading
Loading