Skip to content

Commit df5cc27

Browse files
committed
fix: resolve additional PHPStan errors across packages
- Remove redundant array_values() on lists after array_shift (6 errors) - Fix SqlSourceInterface::getQueryBindings() return type to array<string, mixed> (5 errors) - Widen SnowflakeDriver::connect() @param to match parent interface (1 error) - Fix int->string for length values in datatype tests (7 errors)
1 parent 6beb4b9 commit df5cc27

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Connection/Snowflake/SnowflakeDriver.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class SnowflakeDriver implements Driver
1515
private ?string $certFilePath = null;
1616

1717
/**
18-
* @param array{
18+
* Snowflake-specific connection params:
19+
* array{
1920
* 'host':string,
2021
* 'user':string,
2122
* 'password'?:string,
@@ -30,7 +31,9 @@ class SnowflakeDriver implements Driver
3031
* 'queryTimeout'?: int,
3132
* 'clientSessionKeepAlive'?: bool,
3233
* 'maxBackoffAttempts'?:int
33-
* } $params
34+
* }
35+
*
36+
* @param array<string, mixed> $params
3437
*/
3538
public function connect(
3639
array $params,

0 commit comments

Comments
 (0)