Skip to content

Commit 55d16f0

Browse files
committed
Remove unnecessary empty usages
1 parent af02616 commit 55d16f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function setMethodCalls(array $calls = []): static
328328
*/
329329
public function addMethodCall(string $method, array $arguments = [], bool $returnsClone = false): static
330330
{
331-
if (empty($method)) {
331+
if (!$method) {
332332
throw new InvalidArgumentException('Method name cannot be empty.');
333333
}
334334
$this->calls[] = $returnsClone ? [$method, $arguments, true] : [$method, $arguments];

0 commit comments

Comments
 (0)