Skip to content

Commit e5fed0a

Browse files
author
Juuso Leinonen
committed
Some readability improvments
1 parent f6abf7e commit e5fed0a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/DataLoaderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function load($key);
2929
* @param array $keys
3030
*
3131
* @return Promise
32+
* @throws \InvalidArgumentException
3233
*/
3334
public function loadMany(array $keys);
3435

src/DataLoaderOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function validateCacheOption($shouldCache)
100100
*/
101101
private function validateMaxBatchSizeOption($maxBatchSize)
102102
{
103-
if ($maxBatchSize !== null && ! \is_int($maxBatchSize) || (int) $maxBatchSize < 0) {
103+
if (($maxBatchSize !== null && ! \is_int($maxBatchSize)) || (int) $maxBatchSize < 0) {
104104
throw new \InvalidArgumentException('Expected argument $maxBatchSize to be null or a positive integer');
105105
}
106106
}

0 commit comments

Comments
 (0)