Skip to content

Commit b9141cc

Browse files
committed
Added regression test
1 parent dcf6762 commit b9141cc

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎tests/PHPStan/Rules/Functions/CallToNonExistentFunctionRuleTest.php‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,20 @@ public function testBug8980(): void
280280
]);
281281
}
282282

283+
public function testBug11359(): void
284+
{
285+
$errors = [];
286+
if (PHP_VERSION_ID < 80400) {
287+
$errors = [
288+
[
289+
'Function mb_ucfirst not found.',
290+
3,
291+
'Learn more at https://phpstan.org/user-guide/discovering-symbols',
292+
]
293+
];
294+
}
295+
$this->analyse([__DIR__ . '/data/bug-11359.php'], $errors);
296+
}
297+
298+
283299
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
print mb_ucfirst('hello');

0 commit comments

Comments
 (0)