1 | <?php |
||
16 | class Connection extends \hiqdev\hiart\rest\Connection implements ConnectionInterface |
||
17 | { |
||
18 | public $queryBuilderClass = QueryBuilder::class; |
||
19 | |||
20 | private $app; |
||
21 | |||
22 | public function __construct(Application $app, $config = []) |
||
27 | |||
28 | /** |
||
29 | * Fixes response. |
||
30 | * @param ResponseInterface $response |
||
31 | * @return bool if response was fixed |
||
32 | */ |
||
33 | public function fixResponse(ResponseInterface $response) |
||
50 | |||
51 | /** |
||
52 | * Calls fixResponse. |
||
53 | * @param ResponseInterface $response |
||
54 | * @return string|false error text or false |
||
55 | */ |
||
56 | public function getResponseError(ResponseInterface $response) |
||
75 | |||
76 | /** |
||
77 | * @param ResponseInterface $response |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function isError(ResponseInterface $response) |
||
93 | |||
94 | private function isRawDataEmpty(ResponseInterface $response) |
||
98 | |||
99 | private function getError(ResponseInterface $response) |
||
112 | |||
113 | /** |
||
114 | * Gets auth data from user. |
||
115 | * @return array |
||
116 | */ |
||
117 | public function getAuth() |
||
125 | } |
||
126 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: