Skip to content

Commit d9b4267

Browse files
VincentLangletondrejmirtes
authored andcommitted
Add non regression test
1 parent 6111c21 commit d9b4267

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,11 @@ public function testBug11559(): void
17521752
$this->analyse([__DIR__ . '/data/bug-11559.php'], []);
17531753
}
17541754

1755+
public function testBug10499(): void
1756+
{
1757+
$this->analyse([__DIR__ . '/data/bug-10499.php'], []);
1758+
}
1759+
17551760
public function testBug11559b(): void
17561761
{
17571762
$this->analyse([__DIR__ . '/data/bug-11559b.php'], [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Bug10499;
4+
5+
$username = $currpass = $newpass = $error = '';
6+
7+
if (pam_auth($username, $currpass, $error, false)) {
8+
if (pam_chpass($username, $currpass, $newpass)) {
9+
//
10+
}
11+
}

0 commit comments

Comments
 (0)