Lines Matching refs:array
72 * will be an array containing the resolution values of each of the items in
75 * @param array $promisesOrValues
92 * @param array $promisesOrValues
102 ->done(function ($array) use ($cancellationQueue, $resolve, $reject, $notify) {
103 if (!is_array($array) || !$array) {
108 foreach ($array as $promiseOrValue) {
124 * rejected. The rejection value will be an array of all rejection reasons.
129 * @param array $promisesOrValues
143 * will be an array of length `$howMany` containing the resolution values of the
148 * reject). The rejection value will be an array of
154 * @param array $promisesOrValues
165 ->done(function ($array) use ($howMany, $cancellationQueue, $resolve, $reject, $notify) {
166 if (!\is_array($array) || $howMany < 1) {
171 $len = \count($array);
176 'Input array must contain at least %d item%s but contains only %s item%s.',
190 foreach ($array as $i => $promiseOrValue) {
231 * @param array $promisesOrValues
242 ->done(function ($array) use ($mapFunc, $cancellationQueue, $resolve, $reject, $notify) {
243 if (!\is_array($array) || !$array) {
248 $toResolve = \count($array);
251 foreach ($array as $i => $promiseOrValue) {
279 * @param array $promisesOrValues
291 ->done(function ($array) use ($reduceFunc, $initialValue, $cancellationQueue, $resolve, $reject, $notify) {
292 if (!\is_array($array)) {
293 $array = [];
296 $total = \count($array);
315 \array_reduce($array, $wrappedReduceFunc, resolve($initialValue))