Skip to content

Commit 4a85fef

Browse files
Add non regression test
1 parent a65f7f8 commit 4a85fef

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,11 @@ public function testBug11559(): void
17471747
$this->analyse([__DIR__ . '/data/bug-11559.php'], []);
17481748
}
17491749

1750+
public function testBug10499(): void
1751+
{
1752+
$this->analyse([__DIR__ . '/data/bug-10499.php'], []);
1753+
}
1754+
17501755
public function testBug11559b(): void
17511756
{
17521757
$this->analyse([__DIR__ . '/data/bug-11559b.php'], [
Lines changed: 11 additions & 0 deletions
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)