From 472f08ae9caf7ec5b8fd6a3cc410424ce55f6c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Mon, 23 Oct 2023 10:48:53 +0200 Subject: [PATCH] [FEATURE] Add type coverage (#889) --- CHANGELOG.md | 1 + composer.json | 1 + phpstan.neon | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 945c886..371b943 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Added - Add an FE editor (#864, #872, #874, #876) - Add automerging of green Dependabot PRs (#756) +- Add type coverage calculation (#830) ### Changed - Set the minimal 12LTS version to 12.1 (#702) diff --git a/composer.json b/composer.json index 6371774..3bc48ec 100644 --- a/composer.json +++ b/composer.json @@ -49,6 +49,7 @@ "seld/jsonlint": "^1.10.0", "squizlabs/php_codesniffer": "^3.7.2", "symfony/yaml": "^5.3.6 || ^6.2.0", + "tomasvotruba/type-coverage": "^0.2.0", "typo3/cms-fluid-styled-content": "^11.5.4 || ^12.4.0", "typo3/coding-standards": "^0.6.1", "typo3/testing-framework": "^7.0.4" diff --git a/phpstan.neon b/phpstan.neon index 1087410..f96031e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -20,3 +20,8 @@ parameters: - Classes - Configuration - Tests + + type_coverage: + return_type: 100 + param_type: 100 + property_type: 95