Skip to content

Commit

Permalink
Merge 3ac0e8c into 37eb23b
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Oct 2, 2022
2 parents 37eb23b + 3ac0e8c commit cea6e4c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
php-version: [ '7.4', '8.0', '8.1' ]
php-version: [ '8.1' ]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"nette/finder": "~2.5",
"nette/neon": "~3.0",
"phpstan/extension-installer": "1.1.0",
"phpstan/phpstan": "1.5.3",
"phpstan/phpstan": "1.8.6",
"phpstan/phpstan-deprecation-rules": "1.0.0",
"phpstan/phpstan-strict-rules": "1.1.0",
"symfony/config": "~4.4 || ~5.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/Pgsql/PgsqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PgsqlDriver implements IDriver
use StrictObjectTrait;


/** @var resource|null */
/** @var \PgSql\Connection|null */
private $connection;

/** @var DateTimeZone */
Expand Down Expand Up @@ -213,7 +213,7 @@ public function createPlatform(IConnection $connection): IPlatform
public function getServerVersion(): string
{
assert($this->connection !== null);
return pg_version($this->connection)['server'];
return (string) pg_version($this->connection)['server'];
}


Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/Pgsql/PgsqlResultAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ class PgsqlResultAdapter implements IResultAdapter
use StrictObjectTrait;


/** @var resource */
/** @var \PgSql\Result */
private $result;

/** @var PgsqlResultNormalizerFactory */
private $normalizerFactory;


/**
* @param resource $result
* @param \PgSql\Result $result
*/
public function __construct($result, PgsqlResultNormalizerFactory $normalizerFactory)
{
Expand Down
2 changes: 1 addition & 1 deletion src/SqlProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function processModifier(string $type, $value): string
if (preg_match('#^-?[1-9][0-9]*+\z#', $value) !== 1) {
break;
}
return (string) $value;
return $value;

case '_like':
return $this->platform->formatStringLike($value, -1);
Expand Down

0 comments on commit cea6e4c

Please sign in to comment.