diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a93145d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# Alerts only major updates for Packagist (Composer) +# +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "composer" # Specify the correct package ecosystem for PHP + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + ignore: + - dependency-name: "*" # Ignore all dependencies for specific update types + update-types: ["version-update:semver-minor", "version-update:semver-patch"] diff --git a/composer.json b/composer.json index b4e7eff..391fa59 100644 --- a/composer.json +++ b/composer.json @@ -8,20 +8,22 @@ "license": "MIT", "require": { "php": "^7.4 || ^8.0", - "doctrine/coding-standard": "^9.0", + "doctrine/coding-standard": "^9 || ^10.0 || ^11.0 || ^12.0", "friendsofphp/php-cs-fixer": "^3.4", "phploc/phploc": "^7.0", "phpmd/phpmd": "^2.11", "phpmetrics/phpmetrics": "^2.7", "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^9.5.10", - "psalm/plugin-phpunit": "^0.16", - "sebastian/phpcpd": "^6.0", + "phpunit/phpunit": "^9.6 || ^10.5 || ^11.3", + "psalm/plugin-phpunit": "^0.16 || ^0.19", "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "^4.2" + "vimeo/psalm": "^4.2 || ^5.25" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } }, "scripts": { "test": "phpunit", diff --git a/phpcs.xml b/phpcs.xml index 4d53121..a37864c 100755 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,7 +1,7 @@ + xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">