From 7c77b2cc4f692adaf86cb18fadde4138e00375ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Thu, 26 Oct 2023 08:52:26 +0200 Subject: [PATCH] updating composer packages --- composer.json | 25 +++++++++++++++++-------- phpcs.xml.dist | 12 ++++++++++-- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index bc12869..1084c3b 100644 --- a/composer.json +++ b/composer.json @@ -24,14 +24,14 @@ "source": "https://github.com/infinum/eightshift-boilerplate" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", - "infinum/eightshift-coding-standards": "^1.6", - "php-stubs/wordpress-stubs": "^6.1.1", + "dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", + "infinum/eightshift-coding-standards": "2.0.0-beta", + "php-stubs/wordpress-stubs": "^6.3", "szepeviktor/phpstan-wordpress": "^1.1.7" }, "require": { - "php": "^7.4 || <8.0", - "infinum/eightshift-libs": "^6.0.0", + "php": "^7.4 || >=8.0", + "infinum/eightshift-libs": "dev-develop-php8", "typisttech/imposter-plugin": "^0.6.2" }, "autoload": { @@ -50,10 +50,19 @@ "typisttech/imposter-plugin": true } }, + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/infinum/eightshift-libs.git" + } + ], "scripts": { - "analyze": "@php ./vendor/bin/phpstan analyze", - "standards:check": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs", - "standards:fix": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf" + "test:types": "@php ./vendor/bin/phpstan analyze", + "test:standards": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 7.4-", + "test": [ + "@test:standards", + "@test:types" + ] }, "extra": { "imposter": { diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 94bc556..cd8fe7b 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -19,11 +19,19 @@ . - + - + + /src/CompiledContainer\.php + + + + + + +