Skip to content

Commit 47707a8

Browse files
authored
Merge branch refs/heads/1.12.x into 2.0.x
2 parents cfb5d5f + d9b4267 commit 47707a8

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
@@ -1748,6 +1748,11 @@ public function testBug11559(): void
17481748
$this->analyse([__DIR__ . '/data/bug-11559.php'], []);
17491749
}
17501750

1751+
public function testBug10499(): void
1752+
{
1753+
$this->analyse([__DIR__ . '/data/bug-10499.php'], []);
1754+
}
1755+
17511756
public function testBug11559b(): void
17521757
{
17531758
$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)