Skip to content

Commit 81072bf

Browse files
authored
Release 1.5.0 - PHP 7.2+ requirement (#19)
* ⬆️ Bump PHP requirement to 7.2 - Require PHP >=7.2 (for nullable type syntax + Composer 2.3+ compat) - Remove composer/installers dependency (consuming project provides it) - Update CI: add PHP 8.2-8.5, remove 5.6/7.0/7.1, fix cache key * 🔖 Release 1.5.0
1 parent 50ce0c9 commit 81072bf

5 files changed

Lines changed: 37 additions & 30 deletions

File tree

.circleci/config.yml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ version: 2.1
33
orbs:
44
bedrock-plugin-disabler:
55
executors:
6+
php-85:
7+
docker:
8+
- image: 'cimg/php:8.5'
9+
php-84:
10+
docker:
11+
- image: 'cimg/php:8.4'
12+
php-83:
13+
docker:
14+
- image: 'cimg/php:8.3'
15+
php-82:
16+
docker:
17+
- image: 'cimg/php:8.2'
618
php-81:
719
docker:
820
- image: 'cimg/php:8.1'
@@ -18,15 +30,6 @@ orbs:
1830
php-72:
1931
docker:
2032
- image: 'cimg/php:7.2'
21-
php-71:
22-
docker:
23-
- image: 'cimg/php:7.1'
24-
php-70:
25-
docker:
26-
- image: 'cimg/php:7.0'
27-
php-56:
28-
docker:
29-
- image: 'cimg/php:5.6'
3033
jobs:
3134
build-php:
3235
parameters:
@@ -35,21 +38,34 @@ orbs:
3538
executor: << parameters.executor >>
3639
steps:
3740
- run: php -v
41+
- run: sudo composer self-update --2
3842
- checkout
3943
- restore_cache:
4044
keys:
41-
- composer-v1-{{ checksum "composer.lock" }}
42-
- composer-v1-
45+
- composer-v2-{{ checksum "composer.json" }}
46+
- composer-v2-
4347
- run: composer install -n --prefer-dist
4448
- run: composer lint
4549
- save_cache:
46-
key: composer-v1-{{ checksum "composer.lock" }}
50+
key: composer-v2-{{ checksum "composer.json" }}
4751
paths:
4852
- vendor
4953

5054
workflows:
5155
build:
5256
jobs:
57+
- bedrock-plugin-disabler/build-php:
58+
name: build-php-85
59+
executor: bedrock-plugin-disabler/php-85
60+
- bedrock-plugin-disabler/build-php:
61+
name: build-php-84
62+
executor: bedrock-plugin-disabler/php-84
63+
- bedrock-plugin-disabler/build-php:
64+
name: build-php-83
65+
executor: bedrock-plugin-disabler/php-83
66+
- bedrock-plugin-disabler/build-php:
67+
name: build-php-82
68+
executor: bedrock-plugin-disabler/php-82
5369
- bedrock-plugin-disabler/build-php:
5470
name: build-php-81
5571
executor: bedrock-plugin-disabler/php-81
@@ -65,12 +81,3 @@ workflows:
6581
- bedrock-plugin-disabler/build-php:
6682
name: build-php-72
6783
executor: bedrock-plugin-disabler/php-72
68-
- bedrock-plugin-disabler/build-php:
69-
name: build-php-71
70-
executor: bedrock-plugin-disabler/php-71
71-
- bedrock-plugin-disabler/build-php:
72-
name: build-php-70
73-
executor: bedrock-plugin-disabler/php-70
74-
- bedrock-plugin-disabler/build-php:
75-
name: build-php-56
76-
executor: bedrock-plugin-disabler/php-56

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
#### 1.5.0
4+
- Fix [#16](https://github.com/lukasbesch/bedrock-plugin-disabler/issues/16): Deprecated nullable type syntax. Thanks [@vegetable-bits](https://github.com/vegetable-bits) for the fix.
5+
- Require PHP 7.2+ (dropped support for PHP 5.6, 7.0, 7.1)
6+
- Remove `composer/installers` dependency (consuming project provides it)
7+
- CI: Add PHP 8.2, 8.3, 8.4, 8.5
8+
39
#### 1.4.0
410
- Fix [#15](https://github.com/lukasbesch/bedrock-plugin-disabler/issues/15): Register activation hook only if not installed as mu-plugin. It prevented WP-CLI from running successfully. Thanks [@GiladEhven](https://github.com/GiladEhven) for reporting.
511

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (! defined('DISABLED_PLUGINS')
5050
}
5151
```
5252

53-
PHP 5.6+ can store arrays in constants, but you can also provide serialized data:
53+
You can also provide serialized data:
5454

5555
```php
5656
Config::define('DISABLED_PLUGINS', serialize([

bedrock-plugin-disabler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Bedrock Plugin Disabler
44
Plugin URI: https://github.com/lukasbesch/bedrock-plugin-disabler/
55
Description: Define an array of plugins that should be deactivated automatically in certain environments.
6-
Version: 1.4.0
6+
Version: 1.5.0
77
Author: Lukas Besch, Kamil Grzegorczyk
88
Author URI: https://lukasbesch.com/
99
License: MIT License

composer.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=5.6",
18-
"composer/installers": "^1.4|^2.0"
17+
"php": ">=7.2"
1918
},
2019
"require-dev": {
2120
"roave/security-advisories": "dev-master",
@@ -24,10 +23,5 @@
2423
"scripts": {
2524
"lint": "phpcs",
2625
"lint:fix": "phpcbf"
27-
},
28-
"config": {
29-
"allow-plugins": {
30-
"composer/installers": true
31-
}
3226
}
3327
}

0 commit comments

Comments
 (0)