Skip to content

Commit

Permalink
Regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jul 24, 2022
1 parent d115d2d commit e658b44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1128,4 +1128,9 @@ public function testBug2343(): void
$this->analyse([__DIR__ . '/data/bug-2343.php'], []);
}

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

}
7 changes: 7 additions & 0 deletions tests/PHPStan/Rules/Functions/data/bug-7676.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Bug7676;

$connection = pg_connect("", PGSQL_CONNECT_FORCE_NEW);
if ($connection === false) return;
pg_escape_literal($connection, "test");

0 comments on commit e658b44

Please sign in to comment.