Skip to content

Commit cc820b6

Browse files
style(python): fix empty array check for Rector lint
1 parent 2a96ec5 commit cc820b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SDK/Language/Python.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public function getFiles(): array
310310

311311
protected function isModelDefined(string $name, array $spec): bool
312312
{
313-
if (empty($name) || empty($spec)) {
313+
if (empty($name) || $spec === []) {
314314
return false;
315315
}
316316
$pascal = $this->toPascalCase($name);

0 commit comments

Comments
 (0)