Skip to content

Commit 2b24005

Browse files
committed
Convert to long-form function call
1 parent 00cb88d commit 2b24005

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Release Notes for Spacing
22

3-
## 0.7.1
3+
## 0.7.2 - 2023-04-26
4+
- Use longform function call for PHP <= 7.3 environments
5+
6+
## 0.7.1 - 2023-04-26
47
- Setup a `{{ craft.spacing.config }}` to globally access config values in Twig templates
58

6-
## 0.7.0
9+
## 0.7.0 - 2023-04-25
710
- Initial release

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "trendyminds/craft-spacing",
33
"description": "A utility field to insert spacing between your Matrix blocks",
44
"type": "craft-plugin",
5-
"version": "0.7.1",
5+
"version": "0.7.2",
66
"license": "mit",
77
"support": {
88
"email": "dev@trendyminds.com",

src/fields/Field.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public function normalizeValue($value, ?ElementInterface $element = null)
6060
protected function inputHtml($value, ?ElementInterface $element = null): string
6161
{
6262
$options = Spacing::options()
63-
->mapWithKeys(fn ($group, $key) => [strtolower($key) => $key])
63+
->mapWithKeys(function ($group, $key) {
64+
return [ strtolower($key) => $key ];
65+
})
6466
->toArray();
6567

6668
return Craft::$app->getView()->renderTemplate('spacing/field', [

0 commit comments

Comments
 (0)