File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,15 @@ This command will create a file in your projects root directory that your IDE wi
7
7
> Make sure you have the [ ` getkirby/cli ` ] ( https://github.com/getkirby/cli ) installed to use the command
8
8
9
9
## Installation
10
+
11
+ | Types | K3 | K4 |
12
+ | -------| --------------------| --------------------|
13
+ | 1.1.2 | :heavy_check_mark : | :x : |
14
+ | 2.0.1 | :x : | :heavy_check_mark : |
15
+
10
16
Require this package with composer using the following command.
11
17
```
12
- composer require --dev lukaskleinschmidt/kirby-types
18
+ composer require --dev lukaskleinschmidt/kirby-types:^1.1
13
19
```
14
20
15
21
## Usage
Original file line number Diff line number Diff line change 9
9
10
10
class Command
11
11
{
12
- protected static $ version = '1.1.1 ' ;
12
+ protected static $ version = '1.1.2 ' ;
13
13
14
14
protected array $ options = [];
15
15
Original file line number Diff line number Diff line change 2
2
3
3
namespace LukasKleinschmidt \Types ;
4
4
5
+ use Kirby \Cms \Blueprint ;
5
6
use ReflectionClass ;
6
7
7
8
class Fieldset
@@ -13,7 +14,9 @@ public function __construct(
13
14
14
15
public function fields (): array
15
16
{
16
- return $ this ->fields ;
17
+ return array_map (fn ($ field ) =>
18
+ Blueprint::extend ($ field )
19
+ , $ this ->fields );
17
20
}
18
21
19
22
public function target (): ReflectionClass
You can’t perform that action at this time.
0 commit comments