Skip to content

Commit 909fe88

Browse files
Bugfix
1 parent c59c417 commit 909fe88

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ This command will create a file in your projects root directory that your IDE wi
77
> Make sure you have the [`getkirby/cli`](https://github.com/getkirby/cli) installed to use the command
88
99
## Installation
10+
11+
| Types | K3 | K4 |
12+
|-------|--------------------|--------------------|
13+
| 1.1.2 | :heavy_check_mark: | :x: |
14+
| 2.0.1 | :x: | :heavy_check_mark: |
15+
1016
Require this package with composer using the following command.
1117
```
12-
composer require --dev lukaskleinschmidt/kirby-types
18+
composer require --dev lukaskleinschmidt/kirby-types:^1.1
1319
```
1420

1521
## Usage

src/Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class Command
1111
{
12-
protected static $version = '1.1.1';
12+
protected static $version = '1.1.2';
1313

1414
protected array $options = [];
1515

src/Fieldset.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace LukasKleinschmidt\Types;
44

5+
use Kirby\Cms\Blueprint;
56
use ReflectionClass;
67

78
class Fieldset
@@ -13,7 +14,9 @@ public function __construct(
1314

1415
public function fields(): array
1516
{
16-
return $this->fields;
17+
return array_map(fn ($field) =>
18+
Blueprint::extend($field)
19+
, $this->fields);
1720
}
1821

1922
public function target(): ReflectionClass

0 commit comments

Comments
 (0)