Skip to content

Commit cfb5d5f

Browse files
authored
Merge branch refs/heads/1.12.x into 2.0.x
2 parents e4f5b2b + 6111c21 commit cfb5d5f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,11 @@ public function testArgon2PasswordHash(): void
16461646
$this->analyse([__DIR__ . '/data/argon2id-password-hash.php'], []);
16471647
}
16481648

1649+
public function testBug4960(): void
1650+
{
1651+
$this->analyse([__DIR__ . '/data/bug-4960.php'], []);
1652+
}
1653+
16491654
public function testParamClosureThis(): void
16501655
{
16511656
$this->analyse([__DIR__ . '/data/function-call-param-closure-this.php'], [
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Bug4960;
4+
5+
class HelloWorld
6+
{
7+
public function sayHello(): void
8+
{
9+
$password = "123";
10+
$options = array('cost' => 11);
11+
12+
password_hash($password, PASSWORD_DEFAULT, $options);
13+
}
14+
}

0 commit comments

Comments
 (0)