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: src/Accessable.php
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -27,22 +27,20 @@ public function get($key);
27
27
/**
28
28
* Check if a value exists
29
29
*
30
-
* @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.
30
+
* @return-type-will-change bool `\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.
31
31
*
32
32
* @param mixed $key The key
33
33
*
34
34
* @return bool
35
35
*/
36
-
publicfunctionhas($key);
37
-
// public function has($key): bool;
36
+
publicfunctionhas($key)/*: bool */;
38
37
39
38
/**
40
39
* Returns the keys of all setted values
41
40
*
42
-
* @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.
41
+
* @return-type-will-change array `\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.
43
42
*
44
43
* @return array<string|int> Keys of all setted values
Copy file name to clipboardExpand all lines: src/Factory.php
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,11 @@ interface Factory
16
16
/**
17
17
* Create a new instance of a class
18
18
*
19
-
* @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.
19
+
* @return-type-will-change Accessable `\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.
20
20
*
21
21
* @param array<mixed|Manager|Accessable> $args
22
22
*
23
23
* @return \Art4\JsonApiClient\Accessable
24
24
*/
25
-
publicfunctionmake(string$name, array$args = []);
26
-
// public function make(string $name, array $args = []): Accessable;
Copy file name to clipboardExpand all lines: src/Input/Input.php
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ interface Input
16
16
/**
17
17
* Get the input as simple object
18
18
*
19
-
* @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.
19
+
* @return-type-will-change \stdClass `\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.
20
20
*
21
21
* This should be a native PHP stdClass object, so Manager could
Copy file name to clipboardExpand all lines: src/Manager.php
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,25 +18,23 @@ interface Manager
18
18
/**
19
19
* Parse the input
20
20
*
21
-
* @deprecated `\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.
21
+
* @return-type-will-change Accessable `\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.
22
22
*
23
23
* @throws \Art4\JsonApiClient\Exception\InputException If $input contains invalid JSON API
24
24
* @throws \Art4\JsonApiClient\Exception\ValidationException If $input contains invalid JSON API
25
25
*
26
26
* @return \Art4\JsonApiClient\Accessable
27
27
*/
28
-
publicfunctionparse(Input$input);
29
-
// public function parse(Input $input): Accessable;
* @deprecated `\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.
33
+
* @return-type-will-change Factory `\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.
35
34
*
36
35
* @return \Art4\JsonApiClient\Factory
37
36
*/
38
-
publicfunctiongetFactory();
39
-
// public function getFactory(): Factory;
37
+
publicfunctiongetFactory()/*: Factory */;
40
38
41
39
/**
42
40
* Get a param by key
@@ -46,5 +44,4 @@ public function getFactory();
46
44
* @return mixed
47
45
*/
48
46
publicfunctiongetParam(string$key, $default);
49
-
// public function getParam(string $key, $default);
Copy file name to clipboardExpand all lines: src/Serializer/Serializer.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ interface Serializer
15
15
/**
16
16
* Serialize data
17
17
*
18
-
* @deprecated `\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.
18
+
* @return-type-will-change ?array `\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.
0 commit comments