Skip to content

Commit

Permalink
fix remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 15, 2024
1 parent 48059a5 commit 63df8b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Behat/RwDemosContextTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function getDemosDb(): Persistence\Sql
if ($db === null) {
try {
/** @var Persistence\Sql $db */
require_once $this->demosDir . '/init-db.php'; // @phpstan-ignore x
require_once $this->demosDir . '/init-db.php'; // @phpstan-ignore varTag.nativeType
} catch (\Throwable $e) {
throw new \Exception('Database error: ' . $e->getMessage());
}
Expand Down Expand Up @@ -136,7 +136,7 @@ protected function discoverDatabaseChanges(): array
}
}

return $changesByTable; // @phpstan-ignore x https://github.com/phpstan/phpstan/issues/9252
return $changesByTable;
}

protected function restoreDatabaseBackup(): void
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Control/Multiline.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ private function getExpressionValues(Model $entity): array
return $dummyModel->expr('[]', [$v]);
};

foreach ($entity->getFields() as $field) {
foreach ($entity->getFields() as $field) { // @phpstan-ignore foreach.valueOverwrite (https://github.com/phpstan/phpstan/issues/11012)
$dummyModel->addExpression($field->shortName, [
'expr' => isset($dummyFields[$field->shortName])
? $dummyFields[$field->shortName]->expr
Expand Down
2 changes: 1 addition & 1 deletion src/HtmlTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function emptyTagTree(TagTree $tagTree): void
protected function _setOrAppend($tag, ?string $value = null, bool $encodeHtml = true, bool $append = false, bool $throwIfNotFound = true): void
{
// $tag passed as associative array [tag => value]
if (is_array($tag) && $value === null) { // @phpstan-ignore booleanAnd.alwaysFalse
if (is_array($tag) && $value === null) { // @phpstan-ignore identical.alwaysFalse, booleanAnd.alwaysFalse
if ($throwIfNotFound) {
foreach ($tag as $k => $v) {
if (!$this->_hasTag($k)) {
Expand Down

0 comments on commit 63df8b5

Please sign in to comment.