Skip to content

Commit 6775654

Browse files
committed
fix(saveObjects-error-msg): fix PR
1 parent 3d02f69 commit 6775654

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Exceptions/InvalidArgumentObjectsException.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22

33
namespace Algolia\AlgoliaSearch\Exceptions;
44

5+
use Throwable;
6+
57
final class InvalidArgumentObjectsException extends AlgoliaException
68
{
9+
/**
10+
* InvalidArgumentObjectsException constructor.
11+
*
12+
* @param string $message [optional] The Exception message to throw
13+
* @param int $code [optional] The Exception code
14+
* @param throwable $previous [optional] The previous throwable used for the exception chaining
15+
*/
716
public function __construct($message = '', $code = 0, $previous = null)
817
{
9-
if (!$message) {
18+
if ('' === $message) {
1019
$message = 'Please provide an array of objects instead of a single object.';
1120
}
1221

0 commit comments

Comments
 (0)