chore: enhance type safety with detailed PHPDoc annotations and stricter PHPStan validations

This commit is contained in:
Younes ENNAJI
2024-10-13 21:39:22 +01:00
parent 89d8c2cb7a
commit 08b96bdd39
24 changed files with 1297 additions and 479 deletions
Generated
+85 -87
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "560df60fbc195a8e0eb74495c0c487a8",
"content-hash": "56132bd0ea6cb15e87e676175b408184",
"packages": [
{
"name": "brick/math",
@@ -3162,31 +3162,31 @@
},
{
"name": "symfony/cache",
"version": "v6.4.0",
"version": "v7.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/cache.git",
"reference": "ac2d25f97b17eec6e19760b6b9962a4f7c44356a"
"reference": "5e2376f726d61541b9617512e374808d12c1dc22"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/cache/zipball/ac2d25f97b17eec6e19760b6b9962a4f7c44356a",
"reference": "ac2d25f97b17eec6e19760b6b9962a4f7c44356a",
"url": "https://api.github.com/repos/symfony/cache/zipball/5e2376f726d61541b9617512e374808d12c1dc22",
"reference": "5e2376f726d61541b9617512e374808d12c1dc22",
"shasum": ""
},
"require": {
"php": ">=8.1",
"php": ">=8.2",
"psr/cache": "^2.0|^3.0",
"psr/log": "^1.1|^2|^3",
"symfony/cache-contracts": "^2.5|^3",
"symfony/service-contracts": "^2.5|^3",
"symfony/var-exporter": "^6.3.6|^7.0"
"symfony/var-exporter": "^6.4|^7.0"
},
"conflict": {
"doctrine/dbal": "<2.13.1",
"symfony/dependency-injection": "<5.4",
"symfony/http-kernel": "<5.4",
"symfony/var-dumper": "<5.4"
"doctrine/dbal": "<3.6",
"symfony/dependency-injection": "<6.4",
"symfony/http-kernel": "<6.4",
"symfony/var-dumper": "<6.4"
},
"provide": {
"psr/cache-implementation": "2.0|3.0",
@@ -3195,15 +3195,15 @@
},
"require-dev": {
"cache/integration-tests": "dev-master",
"doctrine/dbal": "^2.13.1|^3|^4",
"doctrine/dbal": "^3.6|^4",
"predis/predis": "^1.1|^2.0",
"psr/simple-cache": "^1.0|^2.0|^3.0",
"symfony/config": "^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
"symfony/filesystem": "^5.4|^6.0|^7.0",
"symfony/http-kernel": "^5.4|^6.0|^7.0",
"symfony/messenger": "^5.4|^6.0|^7.0",
"symfony/var-dumper": "^5.4|^6.0|^7.0"
"symfony/config": "^6.4|^7.0",
"symfony/dependency-injection": "^6.4|^7.0",
"symfony/filesystem": "^6.4|^7.0",
"symfony/http-kernel": "^6.4|^7.0",
"symfony/messenger": "^6.4|^7.0",
"symfony/var-dumper": "^6.4|^7.0"
},
"type": "library",
"autoload": {
@@ -3238,7 +3238,7 @@
"psr6"
],
"support": {
"source": "https://github.com/symfony/cache/tree/v6.4.0"
"source": "https://github.com/symfony/cache/tree/v7.0.0"
},
"funding": [
{
@@ -3254,7 +3254,7 @@
"type": "tidelift"
}
],
"time": "2023-11-24T19:28:07+00:00"
"time": "2023-11-25T15:40:35+00:00"
},
{
"name": "symfony/cache-contracts",
@@ -3857,24 +3857,24 @@
},
{
"name": "symfony/event-dispatcher",
"version": "v6.4.0",
"version": "v7.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "d76d2632cfc2206eecb5ad2b26cd5934082941b6"
"reference": "c459b40ffe67c49af6fd392aac374c9edf8a027e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d76d2632cfc2206eecb5ad2b26cd5934082941b6",
"reference": "d76d2632cfc2206eecb5ad2b26cd5934082941b6",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/c459b40ffe67c49af6fd392aac374c9edf8a027e",
"reference": "c459b40ffe67c49af6fd392aac374c9edf8a027e",
"shasum": ""
},
"require": {
"php": ">=8.1",
"php": ">=8.2",
"symfony/event-dispatcher-contracts": "^2.5|^3"
},
"conflict": {
"symfony/dependency-injection": "<5.4",
"symfony/dependency-injection": "<6.4",
"symfony/service-contracts": "<2.5"
},
"provide": {
@@ -3883,13 +3883,13 @@
},
"require-dev": {
"psr/log": "^1|^2|^3",
"symfony/config": "^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
"symfony/error-handler": "^5.4|^6.0|^7.0",
"symfony/expression-language": "^5.4|^6.0|^7.0",
"symfony/http-foundation": "^5.4|^6.0|^7.0",
"symfony/config": "^6.4|^7.0",
"symfony/dependency-injection": "^6.4|^7.0",
"symfony/error-handler": "^6.4|^7.0",
"symfony/expression-language": "^6.4|^7.0",
"symfony/http-foundation": "^6.4|^7.0",
"symfony/service-contracts": "^2.5|^3",
"symfony/stopwatch": "^5.4|^6.0|^7.0"
"symfony/stopwatch": "^6.4|^7.0"
},
"type": "library",
"autoload": {
@@ -3917,7 +3917,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v6.4.0"
"source": "https://github.com/symfony/event-dispatcher/tree/v7.0.0"
},
"funding": [
{
@@ -3933,7 +3933,7 @@
"type": "tidelift"
}
],
"time": "2023-07-27T06:52:43+00:00"
"time": "2023-07-27T16:29:09+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
@@ -7816,16 +7816,16 @@
},
{
"name": "orchestra/testbench",
"version": "v9.5.0",
"version": "v9.5.2",
"source": {
"type": "git",
"url": "https://github.com/orchestral/testbench.git",
"reference": "a040a69b5481e40d742c67c92a30e1b22b5968f1"
"reference": "bc404d840ffbb722bf0bbb042251ef83223482f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/orchestral/testbench/zipball/a040a69b5481e40d742c67c92a30e1b22b5968f1",
"reference": "a040a69b5481e40d742c67c92a30e1b22b5968f1",
"url": "https://api.github.com/repos/orchestral/testbench/zipball/bc404d840ffbb722bf0bbb042251ef83223482f9",
"reference": "bc404d840ffbb722bf0bbb042251ef83223482f9",
"shasum": ""
},
"require": {
@@ -7833,7 +7833,7 @@
"fakerphp/faker": "^1.23",
"laravel/framework": "^11.11",
"mockery/mockery": "^1.6",
"orchestra/testbench-core": "^9.5",
"orchestra/testbench-core": "^9.5.3",
"orchestra/workbench": "^9.6",
"php": "^8.2",
"phpunit/phpunit": "^10.5 || ^11.0.1",
@@ -7865,22 +7865,22 @@
],
"support": {
"issues": "https://github.com/orchestral/testbench/issues",
"source": "https://github.com/orchestral/testbench/tree/v9.5.0"
"source": "https://github.com/orchestral/testbench/tree/v9.5.2"
},
"time": "2024-09-24T05:44:14+00:00"
"time": "2024-10-06T13:07:57+00:00"
},
{
"name": "orchestra/testbench-core",
"version": "v9.5.0",
"version": "v9.5.3",
"source": {
"type": "git",
"url": "https://github.com/orchestral/testbench-core.git",
"reference": "4880c3f840cac2b9c0a26d46e927d1994aabc69f"
"reference": "9a5754622881f601951427a94c04c50e448cbf09"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/orchestral/testbench-core/zipball/4880c3f840cac2b9c0a26d46e927d1994aabc69f",
"reference": "4880c3f840cac2b9c0a26d46e927d1994aabc69f",
"url": "https://api.github.com/repos/orchestral/testbench-core/zipball/9a5754622881f601951427a94c04c50e448cbf09",
"reference": "9a5754622881f601951427a94c04c50e448cbf09",
"shasum": ""
},
"require": {
@@ -7893,7 +7893,7 @@
"laravel/framework": "<11.11.0 || >=12.0.0",
"laravel/serializable-closure": "<1.3.0 || >=2.0.0",
"nunomaduro/collision": "<8.0.0 || >=9.0.0",
"phpunit/phpunit": "<10.5.0 || 11.0.0 || >=11.4.0"
"phpunit/phpunit": "<10.5.0 || 11.0.0 || >=11.5.0"
},
"require-dev": {
"fakerphp/faker": "^1.23",
@@ -7957,7 +7957,7 @@
"issues": "https://github.com/orchestral/testbench/issues",
"source": "https://github.com/orchestral/testbench-core"
},
"time": "2024-09-23T13:18:23+00:00"
"time": "2024-10-06T11:20:27+00:00"
},
{
"name": "orchestra/workbench",
@@ -8027,30 +8027,31 @@
},
{
"name": "overtrue/phplint",
"version": "9.4.1",
"version": "9.5.3",
"source": {
"type": "git",
"url": "https://github.com/overtrue/phplint.git",
"reference": "cec4a0dbb9d00077dafa2f0cd89f4ca532814276"
"reference": "584063a687abca041551e0b14c47fe9fc574b193"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/overtrue/phplint/zipball/cec4a0dbb9d00077dafa2f0cd89f4ca532814276",
"reference": "cec4a0dbb9d00077dafa2f0cd89f4ca532814276",
"url": "https://api.github.com/repos/overtrue/phplint/zipball/584063a687abca041551e0b14c47fe9fc574b193",
"reference": "584063a687abca041551e0b14c47fe9fc574b193",
"shasum": ""
},
"require": {
"composer-runtime-api": "^2.0",
"ext-dom": "*",
"ext-json": "*",
"ext-mbstring": "*",
"php": "^8.1",
"symfony/cache": "^6.4 || ^7.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/event-dispatcher": "^6.4 || ^7.0",
"symfony/finder": "^6.4 || ^7.0",
"symfony/options-resolver": "^6.4 || ^7.0",
"symfony/process": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0"
"php": "^8.2",
"symfony/cache": "^7.0",
"symfony/console": "^7.0",
"symfony/event-dispatcher": "^7.0",
"symfony/finder": "^7.0",
"symfony/options-resolver": "^7.0",
"symfony/process": "^7.0",
"symfony/yaml": "^7.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
@@ -8072,13 +8073,10 @@
"pre-commit": [
"composer style:fix",
"composer code:check"
],
"pre-push": [
"composer qa:check"
]
},
"branch-alias": {
"dev-main": "9.4.x-dev"
"dev-main": "9.5.x-dev"
}
},
"autoload": {
@@ -8110,7 +8108,7 @@
],
"support": {
"issues": "https://github.com/overtrue/phplint/issues",
"source": "https://github.com/overtrue/phplint/tree/9.4.1"
"source": "https://github.com/overtrue/phplint/tree/9.5.3"
},
"funding": [
{
@@ -8118,7 +8116,7 @@
"type": "github"
}
],
"time": "2024-07-05T14:16:33+00:00"
"time": "2024-10-11T07:13:25+00:00"
},
{
"name": "phar-io/manifest",
@@ -8533,22 +8531,22 @@
},
{
"name": "phpstan/phpstan-symfony",
"version": "1.4.0",
"version": "1.4.10",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-symfony.git",
"reference": "51183fefbaf4713aa81eddbd273dc59dd5e5ff71"
"reference": "f7d5782044bedf93aeb3f38e09c91148ee90e5a1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/51183fefbaf4713aa81eddbd273dc59dd5e5ff71",
"reference": "51183fefbaf4713aa81eddbd273dc59dd5e5ff71",
"url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/f7d5782044bedf93aeb3f38e09c91148ee90e5a1",
"reference": "f7d5782044bedf93aeb3f38e09c91148ee90e5a1",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.11"
"phpstan/phpstan": "^1.12"
},
"conflict": {
"symfony/framework-bundle": "<3.0"
@@ -8599,9 +8597,9 @@
"description": "Symfony Framework extensions and rules for PHPStan",
"support": {
"issues": "https://github.com/phpstan/phpstan-symfony/issues",
"source": "https://github.com/phpstan/phpstan-symfony/tree/1.4.0"
"source": "https://github.com/phpstan/phpstan-symfony/tree/1.4.10"
},
"time": "2024-04-20T06:38:35+00:00"
"time": "2024-09-26T18:14:50+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -9104,16 +9102,16 @@
},
{
"name": "rector/rector",
"version": "1.2.6",
"version": "1.2.7",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
"reference": "6ca85da28159dbd3bb36211c5104b7bc91278e99"
"reference": "5b33bdd871895276e2c18e5410a4a57df9233ee0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/6ca85da28159dbd3bb36211c5104b7bc91278e99",
"reference": "6ca85da28159dbd3bb36211c5104b7bc91278e99",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/5b33bdd871895276e2c18e5410a4a57df9233ee0",
"reference": "5b33bdd871895276e2c18e5410a4a57df9233ee0",
"shasum": ""
},
"require": {
@@ -9151,7 +9149,7 @@
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/1.2.6"
"source": "https://github.com/rectorphp/rector/tree/1.2.7"
},
"funding": [
{
@@ -9159,7 +9157,7 @@
"type": "github"
}
],
"time": "2024-10-03T08:56:44+00:00"
"time": "2024-10-12T11:12:46+00:00"
},
{
"name": "rector/swiss-knife",
@@ -10399,20 +10397,20 @@
},
{
"name": "symfony/options-resolver",
"version": "v6.4.0",
"version": "v7.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/options-resolver.git",
"reference": "22301f0e7fdeaacc14318928612dee79be99860e"
"reference": "700ff4096e346f54cb628ea650767c8130f1001f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/22301f0e7fdeaacc14318928612dee79be99860e",
"reference": "22301f0e7fdeaacc14318928612dee79be99860e",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/700ff4096e346f54cb628ea650767c8130f1001f",
"reference": "700ff4096e346f54cb628ea650767c8130f1001f",
"shasum": ""
},
"require": {
"php": ">=8.1",
"php": ">=8.2",
"symfony/deprecation-contracts": "^2.5|^3"
},
"type": "library",
@@ -10446,7 +10444,7 @@
"options"
],
"support": {
"source": "https://github.com/symfony/options-resolver/tree/v6.4.0"
"source": "https://github.com/symfony/options-resolver/tree/v7.0.0"
},
"funding": [
{
@@ -10462,7 +10460,7 @@
"type": "tidelift"
}
],
"time": "2023-08-08T10:16:24+00:00"
"time": "2023-08-08T10:20:21+00:00"
},
{
"name": "symfony/polyfill-iconv",
@@ -10967,13 +10965,13 @@
],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": [],
"stability-flags": {},
"prefer-stable": true,
"prefer-lowest": true,
"platform": {
"php": ">=8.2",
"ext-intl": "*"
},
"platform-dev": [],
"platform-dev": {},
"plugin-api-version": "2.6.0"
}