Skip to content

Commit

Permalink
Version 3.2.3 : fix vendor errors, pass to 8.0 php minimum, tested up…
Browse files Browse the repository at this point in the history
… to 6.5
  • Loading branch information
Rahe committed Jun 5, 2024
1 parent 5c0788e commit a638561
Show file tree
Hide file tree
Showing 12 changed files with 1,098 additions and 746 deletions.
3 changes: 2 additions & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ psalm.xml
readme.txt
.DS_Store
.distignore
.gitignore
.gitignore
.wp-env.json
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ composer.lock export-ignore
.gitignore export-ignore
grumphp.yml export-ignore
psalm.yml export-ignore
.wp-env.json export-ignore

# Do not diff theses fikes
composer.lock -diff
package-lock.json -diff

6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
- name: Build project PHP
id: compile-php
uses: shivammathur/setup-php@v2

- run: composer validate && composer install --prefer-dist --no-dev --ignore-platform-reqs -o
with:
php-version: '8.0'
run: |
composer validate && composer install --prefer-dist --no-dev --ignore-platform-reqs -o
- name: WordPress Plugin Deploy
id: deploy
Expand Down
6 changes: 6 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"phpVersion": "8.0",
"plugins": [
"."
]
}
26 changes: 16 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,30 @@
],
"type": "wordpress-plugin",
"require": {
"php": ">=5.6"
"php": ">=8.0"
},
"autoload" : {
"psr-4": {
"Rahe\\Simple_Image_Sizes\\" : "classes/"
}
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpcompatibility/php-compatibility": "^9.3",
"phpro/grumphp-shim": "^1.1",
"vimeo/psalm": "^4.1",
"wp-coding-standards/wpcs": "^2.3"
},
"scripts": {
"scripts": {
"cs": "./vendor/bin/phpcs ./",
"cb": "./vendor/bin/phpcbf ./",
"psalm": "./vendor/bin/psalm ./"
},
"config": {
"allow-plugins": {
"phpro/grumphp-shim": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpcompatibility/php-compatibility": "^9.3",
"phpro/grumphp-shim": "^2.0",
"vimeo/psalm": "^5.24",
"wp-coding-standards/wpcs": "^3.1"
}
}
Loading

0 comments on commit a638561

Please sign in to comment.