projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update to PHP-8.1
[m6w6/seekat]
/
lib
/
API
/
ContentType
/
Handler.php
diff --git
a/lib/API/ContentType/Handler.php
b/lib/API/ContentType/Handler.php
index d6cd7c69dd8cddab8e419378a663e61b5227008d..7aa1043db4d9ab0f2fcfbb3dde0c354810397db5 100644
(file)
--- a/
lib/API/ContentType/Handler.php
+++ b/
lib/API/ContentType/Handler.php
@@
-7,21
+7,17
@@
use http\Message\Body;
interface Handler {
/**
* List handled types
interface Handler {
/**
* List handled types
- * @return
array
+ * @return
string[]
*/
function types() : array;
/**
* Decode HTTP message body
*/
function types() : array;
/**
* Decode HTTP message body
- * @param Body $body
- * @return mixed
*/
*/
- function decode(Body $body);
+ function decode(Body $body)
: mixed
;
/**
* Encode HTTP message body
/**
* Encode HTTP message body
- * @param $data
- * @return Body
*/
*/
- function encode($data) : Body;
+ function encode(
mixed
$data) : Body;
}
}