Skip to content

Commit 914335c

Browse files
authored
Merge pull request #29 from CristalTeam/hotfix/remove_crud_typehint
Remove API CRUD methods typehint
2 parents 61fdd68 + 19b651c commit 914335c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Api.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ protected function findOne(string $endpoint, $id, array $filters = [])
114114
* @param int $id
115115
* @param $attributes
116116
*
117-
* @return array
117+
* @return mixed|array
118118
*/
119-
protected function update(string $endpoint, $id, $attributes): array
119+
protected function update(string $endpoint, $id, $attributes)
120120
{
121121
$key = $endpoint.'/'.$id.'?';
122122

@@ -129,9 +129,9 @@ protected function update(string $endpoint, $id, $attributes): array
129129
* @param string $endpoint
130130
* @param $attributes
131131
*
132-
* @return array
132+
* @return mixed|array
133133
*/
134-
protected function create(string $endpoint, $attributes): array
134+
protected function create(string $endpoint, $attributes)
135135
{
136136
return $this->getTransport()->request('/'.$endpoint, $attributes, 'post') ?? [];
137137
}
@@ -142,9 +142,9 @@ protected function create(string $endpoint, $attributes): array
142142
* @param string $endpoint
143143
* @param int $id
144144
*
145-
* @return array
145+
* @return mixed|array
146146
*/
147-
protected function delete(string $endpoint, $id): array
147+
protected function delete(string $endpoint, $id)
148148
{
149149
$key = $endpoint.'/'.$id.'?';
150150
$this->deleteCache($key);

0 commit comments

Comments
 (0)