Skip to content

Commit

Permalink
Ignore some PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Apr 20, 2022
1 parent c6e9616 commit d291126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ protected static function addCommand(string $file, Console $console, Locator $lo
}
$class = new ReflectionClass($className); // @phpstan-ignore-line
if ($class->isInstantiable() && $class->isSubclassOf(Command::class)) {
$console->addCommand($className);
$console->addCommand($className); // @phpstan-ignore-line
return true;
}
return false;
Expand Down
6 changes: 3 additions & 3 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public function update(int | string $id, array | Entity | stdClass $data) : fals
if ($this->isCacheActive()) {
$this->updateCachedRow($id);
}
return $affectedRows;
return $affectedRows; // @phpstan-ignore-line
}

/**
Expand Down Expand Up @@ -616,7 +616,7 @@ public function replace(int | string $id, array | Entity | stdClass $data) : fal
if ($this->isCacheActive()) {
$this->updateCachedRow($id);
}
return $affectedRows;
return $affectedRows; // @phpstan-ignore-line
}

/**
Expand All @@ -639,7 +639,7 @@ public function delete(int | string $id) : false | int
$this->getCacheKey([$this->getPrimaryKey() => $id])
);
}
return $affectedRows;
return $affectedRows; // @phpstan-ignore-line
}

protected function getValidation() : Validation
Expand Down

0 comments on commit d291126

Please sign in to comment.