Skip to content

Commit 8a95d87

Browse files
fix(specs): results in getObjects is required (generated)
algolia/api-clients-automation#4024 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b81b47f commit 8a95d87

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/Model/Search/GetObjectsResponse.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@ public static function getters()
137137
*/
138138
public function listInvalidProperties()
139139
{
140-
return [];
140+
$invalidProperties = [];
141+
142+
if (!isset($this->container['results']) || null === $this->container['results']) {
143+
$invalidProperties[] = "'results' can't be null";
144+
}
145+
146+
return $invalidProperties;
141147
}
142148

143149
/**
@@ -154,7 +160,7 @@ public function valid()
154160
/**
155161
* Gets results.
156162
*
157-
* @return null|object[]
163+
* @return object[]
158164
*/
159165
public function getResults()
160166
{
@@ -164,7 +170,7 @@ public function getResults()
164170
/**
165171
* Sets results.
166172
*
167-
* @param null|object[] $results retrieved records
173+
* @param object[] $results retrieved records
168174
*
169175
* @return self
170176
*/

0 commit comments

Comments
 (0)