Skip to content

Commit c29d5ca

Browse files
Add non regression test
1 parent 25c1017 commit c29d5ca

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

tests/PHPStan/Rules/Operators/InvalidBinaryOperationRuleTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,13 @@ public function testBenevolentUnion(): void
795795
]);
796796
}
797797

798+
public function testBug12123(): void
799+
{
800+
$this->checkImplicitMixed = true;
801+
802+
$this->analyse([__DIR__ . '/data/bug-12123.php'], []);
803+
}
804+
798805
public function testBug7863(): void
799806
{
800807
$this->checkImplicitMixed = true;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug12123;
4+
5+
$x = gmp_init('1');
6+
$y = $x * 2;
7+
var_dump($y);

0 commit comments

Comments
 (0)