You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ Generate Immutable Objects with ease!
10
10
composer require event-engine/php-data
11
11
```
12
12
13
+
## Versions
14
+
- 1.x uses method return type hints to detect ImmutableRecord property types
15
+
- Use this version in PHP 7.2 - PHP 7.3 environments
16
+
- 2.x makes use of PHP 7.4 property type hints
17
+
- Use this version in >= PHP 7.4 environments
18
+
13
19
## PHPStorm Templates
14
20
15
21
The `EventEngine\Data` package contains a set of live templates specifically designed to work together with the `EventEngine\Data\ImmutableRecord`.
@@ -22,3 +28,9 @@ Please find the `settings.zip` [here](https://github.com/event-engine/php-data/b
22
28
## Usage
23
29
24
30
Usage is described in the [documentation](https://event-engine.io/api/immutable_state.html)
31
+
32
+
## No Tests?
33
+
34
+
Looks strange, right? A stable open source package without a single test can only be a joke ...
35
+
You're right! The situation isn't ideal. However, this is a low level package used by [event-engine/php-json-schema](https://github.com/event-engine/php-json-schema).
36
+
The tests included there also cover the implementation of this package. Anyway, a pull request that adds some tests is always welcome!
0 commit comments