From 73cd00fd635b5b93a142937f074c94043da93233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 27 Nov 2019 09:15:50 +0100 Subject: [PATCH] Enhancement: Synchronize project tooling configuration with ergebnis/php-cs-fixer-config-template --- .dependabot/config.yml | 9 ++++++--- .github/CONTRIBUTING.md | 14 +++++++++++++- src/Factory.php | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 9f7aeb7b..5043a2cd 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -11,9 +11,12 @@ update_configs: - "localheinz" directory: "/" package_manager: "github_actions" - update_schedule: "weekly" + update_schedule: "daily" - - default_assignees: + - automerged_updates: + - match: + dependency_type: "development" + default_assignees: - "localheinz" default_labels: - "dependency" @@ -21,5 +24,5 @@ update_configs: - "localheinz" directory: "/" package_manager: "php:composer" - update_schedule: "weekly" + update_schedule: "daily" version_requirement_updates: "increase_versions" diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 2955a6a5..c84731f8 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -16,6 +16,18 @@ $ make coding-standards to automatically fix coding standard violations. +## Dependency Analysis + +We are using [`maglnet/composer-require-checker`](https://github.com/maglnet/ComposerRequireChecker) to prevent the use of unknown symbols in production code. + +Run + +``` +$ make dependency-analysis +``` + +to run a dependency analysis. + ## Static Code Analysis We are using [`phpstan/phpstan`](https://github.com/phpstan/phpstan) to statically analyze the code. @@ -72,7 +84,7 @@ Run $ make ``` -to enforce coding standards, perform a static code analysis, and run tests! +to enforce coding standards, run a dependency analysis, run a static code analysis, and run tests! ## Help diff --git a/src/Factory.php b/src/Factory.php index 88a695cb..99d6474d 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -27,7 +27,7 @@ final class Factory * * @return Config */ - public static function fromRuleSet(RuleSet $ruleSet, array $overrideRules = []) + public static function fromRuleSet(RuleSet $ruleSet, array $overrideRules = []): Config { if (\PHP_VERSION_ID < $ruleSet->targetPhpVersion()) { throw new \RuntimeException(\sprintf(