Skip to content

Commit

Permalink
Query: Add missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schindler committed Oct 27, 2022
1 parent 0b508dd commit 75c17d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/Core/Data/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Query
* @param string $queryStr Query as a string
* @param array<string|int,string|float>|null $values Values for placeholders
*/
public function __construct($queryStr = '', ?array $values = null) {
public function __construct(string $queryStr = '', ?array $values = null) {
$this->queryStr = $queryStr;
$this->values = $values;
$this->con = new PDO('mysql:host='.DB_HOST.'; dbname='.DB_NAME, DB_USER, DB_PASS);
Expand Down

0 comments on commit 75c17d2

Please sign in to comment.