Skip to content

Commit

Permalink
updating composer packages
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Oct 26, 2023
1 parent 1378c75 commit 7c77b2c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
25 changes: 17 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
12 changes: 10 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,19 @@
<file>.</file>

<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="7.2-"/>
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>

<config name="minimum_supported_wp_version" value="5.3"/>
<!-- Support only latest 3 WP versions. -->
<config name="minimum_supported_wp_version" value="6.0"/>

<exclude-pattern>/src/CompiledContainer\.php</exclude-pattern>

<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="180" />
<property name="ignoreComments" value="true" />
</properties>
</rule>

</ruleset>

0 comments on commit 7c77b2c

Please sign in to comment.