Skip to content

Commit

Permalink
Merge pull request #70 from sroehrl/request-guard
Browse files Browse the repository at this point in the history
BUGFIX: Allow array in queries
  • Loading branch information
sroehrl authored May 17, 2023
2 parents 3603221 + 9c1c932 commit 62d71f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function getQueries(): array
return $instance->queryParts;
}

public static function getQuery(string $name): ?string
public static function getQuery(string $name): string | array | null
{
$instance = self::getInstance();
return $instance->queryParts[$name] ?? null;
Expand Down
4 changes: 2 additions & 2 deletions tests/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1682341756">
<project timestamp="1682341756">
<coverage generated="1684288326">
<project timestamp="1684288326">
<file name="C:\xampp\htdocs\neoan.io-tools\lenkrad-core\src\CoreInterfaces\RequestInterface.php">
<metrics loc="12" ncloc="12" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
</file>
Expand Down

0 comments on commit 62d71f5

Please sign in to comment.