Skip to content

Commit

Permalink
Drop ignore error pattern matching Model::getKeyName() & `Model::ge…
Browse files Browse the repository at this point in the history
…tColumns()` methods
  • Loading branch information
yhabteab committed Sep 13, 2023
1 parent 19207a3 commit d8d38f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 91 deletions.
5 changes: 4 additions & 1 deletion library/X509/Model/Behavior/ExpressionInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use ipl\Orm\Contract\QueryAwareBehavior;
use ipl\Orm\Contract\RewriteFilterBehavior;
use ipl\Orm\Query;
use ipl\Sql\ExpressionInterface;
use ipl\Stdlib\Filter;

/**
Expand Down Expand Up @@ -44,7 +45,9 @@ public function rewriteCondition(Filter\Condition $condition, $relation = null)
$subject = $this->query->getModel();
}

$expression = clone $subject->getColumns()[$columnName];
/** @var ExpressionInterface $column */
$column = $subject->getColumns()[$columnName];
$expression = clone $column;
$expression->setColumns($this->query->getResolver()->qualifyColumns(
$this->query->getResolver()->requireAndResolveColumns(
$expression->getColumns(),
Expand Down
90 changes: 0 additions & 90 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1050,16 +1050,6 @@ parameters:
count: 1
path: library/X509/Model/X509Certificate.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Certificate\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Certificate.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Certificate\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Certificate.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Certificate\\:\\:getSearchColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand All @@ -1075,16 +1065,6 @@ parameters:
count: 1
path: library/X509/Model/X509CertificateChain.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChain\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509CertificateChain.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChain\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509CertificateChain.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChainLink\\:\\:createBehaviors\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -1095,16 +1075,6 @@ parameters:
count: 1
path: library/X509/Model/X509CertificateChainLink.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChainLink\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509CertificateChainLink.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateChainLink\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509CertificateChainLink.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateSubjectAltName\\:\\:createBehaviors\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -1115,16 +1085,6 @@ parameters:
count: 1
path: library/X509/Model/X509CertificateSubjectAltName.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateSubjectAltName\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509CertificateSubjectAltName.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509CertificateSubjectAltName\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509CertificateSubjectAltName.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Dn\\:\\:createBehaviors\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -1135,46 +1095,6 @@ parameters:
count: 1
path: library/X509/Model/X509Dn.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Dn\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Dn.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Dn\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Dn.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Job\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Job.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Job\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Job.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509JobRun\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509JobRun.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509JobRun\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509JobRun.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Schedule\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Schedule.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Schedule\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Schedule.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Target\\:\\:createBehaviors\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -1190,16 +1110,6 @@ parameters:
count: 1
path: library/X509/Model/X509Target.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Target\\:\\:getColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Target.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Target\\:\\:getKeyName\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: library/X509/Model/X509Target.php

-
message: "#^Method Icinga\\\\Module\\\\X509\\\\Model\\\\X509Target\\:\\:getSearchColumns\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down

0 comments on commit d8d38f0

Please sign in to comment.