Skip to content

Commit cdac559

Browse files
committed
Fixed PHP 5.6 and 7.0 compatibility
1 parent a0eb328 commit cdac559

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Blueprints/src/BlueprintForm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ protected function deepMerge(array $a, array $b)
348348
unset($bref_stack[key($bref_stack)]);
349349

350350
foreach ($head as $key => $value) {
351-
if (is_string($key) && str_contains($key, '@')) {
351+
if (is_string($key) && ('' === $key || false !== strpos($key, '@'))) {
352352
// Remove @ from the start and the end. Key syntax `import@2` is supported to allow multiple operations of the same type.
353353
$list = explode('-', (string)preg_replace('/^(@*)?([^@]+)(@\d*)?$/', '\2', $key), 2);
354354
$action = array_shift($list);

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.6.1
2+
## mm/dd/2022
3+
4+
1. [](#bugfix)
5+
* Fixed PHP 5.6 and 7.0 compatibility
6+
17
# v1.6.0
28
## 12/15/2021
39

composer.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@
88
"require": {
99
"php": ">=5.6.0",
1010
"ext-json": "*",
11-
"symfony/polyfill-php80": "^1.23",
12-
"symfony/polyfill-php81": "^1.23",
13-
"pimple/pimple": "~3.0",
14-
"symfony/yaml": "^3.4|^4.0",
15-
"symfony/event-dispatcher": "^3.4|^4.0"
16-
},
17-
"require-dev": {
18-
"phpunit/phpunit": "^8.0",
19-
"phpstan/phpstan": "^1.2",
20-
"phpstan/phpstan-deprecation-rules": "^1.0"
11+
"pimple/pimple": "^3.0",
12+
"symfony/yaml": "^3.4|^4.0|^5.0",
13+
"symfony/event-dispatcher": "^3.4|^4.0|^5.0"
2114
},
2215
"autoload": {
2316
"psr-4": {

0 commit comments

Comments
 (0)