Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ public function testBug13022(): void
$this->analyse([__DIR__ . '/data/bug-13022.php'], []);
}

public function testBug14041(): void
{
$this->analyse([__DIR__ . '/data/bug-14041.php'], []);
}

}
14 changes: 14 additions & 0 deletions tests/PHPStan/Rules/Arrays/data/bug-14041.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php declare(strict_types = 1);

namespace Bug14041;

use Pdo\Mysql;

$connection_options['pdo'] = [
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
Mysql::ATTR_USE_BUFFERED_QUERY => TRUE,
Mysql::ATTR_FOUND_ROWS => TRUE,
\PDO::ATTR_EMULATE_PREPARES => TRUE,
Mysql::ATTR_MULTI_STATEMENTS => FALSE,
\PDO::ATTR_STRINGIFY_FETCHES => TRUE,
];
Loading