Skip to content

Commit 6111c21

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

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,11 @@ public function testArgon2PasswordHash(): void
16501650
$this->analyse([__DIR__ . '/data/argon2id-password-hash.php'], []);
16511651
}
16521652

1653+
public function testBug4960(): void
1654+
{
1655+
$this->analyse([__DIR__ . '/data/bug-4960.php'], []);
1656+
}
1657+
16531658
public function testParamClosureThis(): void
16541659
{
16551660
if (PHP_VERSION_ID < 70400) {
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)