1 | <?php |
||
18 | class ClientRemote extends BaseClientRemote implements RequestsInterface |
||
19 | { |
||
20 | protected $baseEndpoint = 'http://localhost/api'; |
||
21 | protected $hostedBaseEndpointFormat = 'https://%s.directus.io/api'; |
||
22 | |||
23 | 2 | public function getTables(array $params = []) |
|
27 | |||
28 | 4 | public function fetchTableInfo($tableName) |
|
32 | |||
33 | 2 | public function getColumns(array $params = []) |
|
34 | { |
||
35 | 2 | throw new \Exception('Endpoint not defined yet'); |
|
36 | } |
||
37 | |||
38 | 2 | public function getTableColumns($tableName, array $params = []) |
|
42 | |||
43 | 2 | public function fetchColumnInfo($tableName, $columnName) |
|
47 | |||
48 | 2 | public function getEntries($tableName, array $options = []) |
|
52 | |||
53 | 2 | public function getEntry($id, $tableName, array $options = []) |
|
57 | |||
58 | 2 | public function getUsers(array $params = []) |
|
59 | { |
||
60 | 2 | return $this->getEntries('directus_users', $params); |
|
61 | } |
||
62 | |||
63 | 2 | public function getUser($id, array $params = []) |
|
64 | { |
||
65 | 2 | return $this->getEntry($id, 'directus_users', $params); |
|
66 | } |
||
67 | |||
68 | 2 | public function fetchGroups() |
|
72 | |||
73 | 2 | public function fetchGroupInfo($groupID) |
|
77 | |||
78 | 2 | public function fetchGroupPrivileges($groupID) |
|
82 | |||
83 | 2 | public function fetchFiles() |
|
87 | |||
88 | 2 | public function fetchFileInfo($fileID) |
|
92 | |||
93 | 2 | public function fetchSettings() |
|
97 | |||
98 | 2 | public function fetchSettingCollection($collectionName) |
|
102 | } |
||
103 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: