Skip to content

Commit dad674d

Browse files
QueryAwareBehavior::setQuery(): Add strict type declarations
The return type is also added for `Binary::setQuery()` This change required adjustments to the following dependencies: notifications-web: - library/Notifications/Model/Behavior/IdTagAggregator - library/Notifications/Model/Behavior/ObjectTags x509: - library/X509/Model/Behavior/ExpressionInjector - library/X509/Model/Behavior/Ip icingadb-web: - library/Icingadb/Model/Behavior/FlattenedObjectVars - library/Icingadb/Model/Behavior/HasProblematicParent
1 parent eba697b commit dad674d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Behavior/Binary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function toDb($value, $key, $_)
6666
return sprintf('\\x%s', bin2hex($value));
6767
}
6868

69-
public function setQuery(Query $query)
69+
public function setQuery(Query $query): static
7070
{
7171
$this->isPostgres = $query->getDb()->getAdapter() instanceof Pgsql;
7272

src/Contract/QueryAwareBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ interface QueryAwareBehavior extends Behavior
1414
*
1515
* @return $this
1616
*/
17-
public function setQuery(Query $query);
17+
public function setQuery(Query $query): static;
1818
}

0 commit comments

Comments
 (0)