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: CHANGELOG.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11
11
12
12
- Added type hints for parameters and return types in internal and final classes
13
13
- New tests for improving backward compatibility in interfaces
14
+
- Support for PHP 8.1 is added in CI tests
14
15
15
16
### Changed
16
17
17
18
- Switched from Travis-CI to Github Actions
18
19
20
+
### Deprecated
21
+
22
+
-`\Art4\JsonApiClient\Accessable::has()` will add `bool` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
23
+
-`\Art4\JsonApiClient\Accessable::getKeys()` will add `array` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
24
+
-`\Art4\JsonApiClient\Exception\Exception` will extend `\Throwable` in v2.0, do the same in your implementation now to avoid errors.
25
+
-`\Art4\JsonApiClient\Factory::make()` methods first parameter signature will be `string` in v2.0.
26
+
-`\Art4\JsonApiClient\Factory::make()` will add `\Art4\JsonApiClient\Accessable` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
27
+
-`\Art4\JsonApiClient\Input\Input::getAsObject()` will add `\stdClass` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
28
+
-`\Art4\JsonApiClient\Manager::parse()` will add `\Art4\JsonApiClient\Accessable` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
29
+
-`\Art4\JsonApiClient\Manager::getFactory()` will add `\Art4\JsonApiClient\Factory` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
30
+
-`\Art4\JsonApiClient\Manager::getParam()` methods first parameter signature will be `string` in v2.0.
31
+
-`\Art4\JsonApiClient\Serializer\Serializer::serialize()` will add `?array` as a native return type declaration in v2.0, do the same in your implementation now to avoid errors.
Copy file name to clipboardExpand all lines: src/Accessable.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,16 +36,22 @@ public function get($key);
36
36
/**
37
37
* Check if a value exists
38
38
*
39
+
* @deprecated `\Art4\JsonApiClient\Accessable::has()` will add `bool` as a native return type declaration in v2.0. Do the same in your implementation now to avoid errors.
40
+
*
39
41
* @param mixed $key The key
40
42
*
41
43
* @return bool
42
44
*/
43
45
publicfunctionhas($key);
46
+
// public function has($key): bool;
44
47
45
48
/**
46
49
* Returns the keys of all setted values
47
50
*
51
+
* @deprecated `\Art4\JsonApiClient\Accessable::getKeys()` will add `array` as a native return type declaration in v2.0. Do the same in your implementation now to avoid errors.
Copy file name to clipboardExpand all lines: src/Factory.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,6 @@
19
19
20
20
namespaceArt4\JsonApiClient;
21
21
22
-
useArt4\JsonApiClient\Accessable;
23
-
24
22
/**
25
23
* Factory Interface
26
24
*/
@@ -29,10 +27,14 @@ interface Factory
29
27
/**
30
28
* Create a new instance of a class
31
29
*
30
+
* @deprecated The `\Art4\JsonApiClient\Factory::make()` methods first parameter signature will be `string` in v2.0.
31
+
* @deprecated `\Art4\JsonApiClient\Factory::make()` will add `\Art4\JsonApiClient\Accessable` as a native return type declaration in v2.0. Do the same in your implementation now to avoid errors.
32
+
*
32
33
* @param string $name
33
34
* @param array<mixed|Manager|Accessable> $args
34
35
*
35
36
* @return \Art4\JsonApiClient\Accessable
36
37
*/
37
38
publicfunctionmake($name, array$args = []);
39
+
// public function make(string $name, array $args = []): Accessable;
Copy file name to clipboardExpand all lines: src/Input/Input.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,15 @@ interface Input
27
27
/**
28
28
* Get the input as simple object
29
29
*
30
-
* This should be a native PH stdClass object, so Manager could
30
+
* @deprecated `\Art4\JsonApiClient\Input\Input::getAsObject()` will add `\stdClass` as a native return type declaration in v2.0. Do the same in your implementation now to avoid errors.
31
+
*
32
+
* This should be a native PHP stdClass object, so Manager could
31
33
* iterate over all public attributes
32
34
*
33
35
* @throws \Art4\JsonApiClient\Exception\InputException if something went wrong with the input
0 commit comments