Skip to content

Commit 7201525

Browse files
longwaveondrejmirtes
authored andcommitted
Fix #14041.
1 parent 698b9aa commit 7201525

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

tests/PHPStan/Rules/Arrays/DuplicateKeysInLiteralArraysRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,9 @@ public function testBug13022(): void
110110
$this->analyse([__DIR__ . '/data/bug-13022.php'], []);
111111
}
112112

113+
public function testBug14041(): void
114+
{
115+
$this->analyse([__DIR__ . '/data/bug-14041.php'], []);
116+
}
117+
113118
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug14041;
4+
5+
use Pdo\Mysql;
6+
7+
$connection_options['pdo'] = [
8+
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
9+
Mysql::ATTR_USE_BUFFERED_QUERY => TRUE,
10+
Mysql::ATTR_FOUND_ROWS => TRUE,
11+
\PDO::ATTR_EMULATE_PREPARES => TRUE,
12+
Mysql::ATTR_MULTI_STATEMENTS => FALSE,
13+
\PDO::ATTR_STRINGIFY_FETCHES => TRUE,
14+
];

0 commit comments

Comments
 (0)