Skip to content

Commit 46a60f7

Browse files
Reproducer
1 parent 9dbff97 commit 46a60f7

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ jobs:
282282
cd e2e/ignore-error-extension
283283
composer install
284284
../../bin/phpstan
285+
- script: |
286+
cd e2e/bug-10483
287+
../../bin/phpstan -vvv
285288
286289
steps:
287290
- name: "Checkout"

e2e/bug-10483/bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
define("FILTER_VALIDATE_FLOAT",false);

e2e/bug-10483/bug-10483.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
function doFoo(mixed $filter): void {
4+
\PHPStan\Testing\assertType('non-falsy-string|false', filter_var("no", FILTER_VALIDATE_REGEXP));
5+
}

e2e/bug-10483/phpstan.dist.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 9
3+
paths:
4+
- bug-10483.php
5+
6+
bootstrapFiles:
7+
- bootstrap.php

0 commit comments

Comments
 (0)