Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ jobs:
- script: |
cd e2e/bug-11819
../../bin/phpstan
- script: |
cd e2e/bug-14305
../../bin/phpstan
- script: |
cd e2e/composer-and-phpstan-version-config
composer install --ignore-platform-reqs
Expand Down
4 changes: 4 additions & 0 deletions e2e/bug-14305/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
level: 5
paths:
- test.php
15 changes: 15 additions & 0 deletions e2e/bug-14305/test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Bug14305;

define('BUG14305_XDOC_GMETA_EMTY', 0);
define('BUG14305_XDOC_GMETA_NUPATH', 7);
define('BUG14305_XDOC_GMETAS', [
'empty' => 0,
'nupath' => 7,
]);

$row = ['id' => 0];

foreach ([BUG14305_XDOC_GMETA_EMTY, BUG14305_XDOC_GMETA_NUPATH] as $meta)
$row[array_search($meta, BUG14305_XDOC_GMETAS)] = '';
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ parameters:
-
rawMessage: PHPDoc tag @var with type float|int is not subtype of native type int.
identifier: varTag.nativeType
count: 2
count: 3
path: src/Type/Constant/ConstantArrayTypeBuilder.php

-
Expand Down
Loading