We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 569f7bd commit fe7d6beCopy full SHA for fe7d6be
composer.json
@@ -16,7 +16,7 @@
16
}
17
],
18
"require": {
19
- "php": ">=7.0",
+ "php": "^7.1",
20
"cakephp/cakephp": "^3.6",
21
"league/fractal": ">=0.13.0"
22
},
src/Serializer/ArraySerializer.php
@@ -9,12 +9,12 @@ class ArraySerializer extends Serializer
9
/**
10
* Serialize a collection.
11
*
12
- * @param string $resourceKey resource key
13
- * @param array $data data
+ * @param string|null $resourceKey resource key
+ * @param array $data data
14
15
* @return array
*/
- public function collection($resourceKey, array $data)
+ public function collection(?string $resourceKey, array $data): array
{
return $data;
0 commit comments