Skip to content

Commit 0e3a12d

Browse files
Reproducer
1 parent 9dbff97 commit 0e3a12d

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-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
285288
286289
steps:
287290
- name: "Checkout"

e2e/bug-10483/bug-10483.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
define("FILTER_VALIDATE_FLOAT",false);
4+
5+
$mixed = doFoo();
6+
if (filter_var($mixed, FILTER_VALIDATE_BOOLEAN)) {
7+
}

e2e/bug-10483/phpstan.dist.neon

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

0 commit comments

Comments
 (0)