File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public static function mutationsProvider(): iterable
2727 yield 'It mutates trinary yes ' => [
2828 <<<'PHP'
2929 <?php
30+
3031 $trinary = \PHPStan\TrinaryLogic::createYes();
3132 $trinary->yes();
3233 PHP
@@ -43,6 +44,7 @@ public static function mutationsProvider(): iterable
4344 yield 'It mutates trinary no ' => [
4445 <<<'PHP'
4546 <?php
47+
4648 $trinary = \PHPStan\TrinaryLogic::createYes();
4749 $trinary->no();
4850 PHP
@@ -59,6 +61,7 @@ public static function mutationsProvider(): iterable
5961 yield 'It skips maybe ' => [
6062 <<<'PHP'
6163 <?php
64+
6265 $trinary = \PHPStan\TrinaryLogic::createYes();
6366 $trinary->maybe();
6467 PHP
@@ -68,6 +71,7 @@ public static function mutationsProvider(): iterable
6871 yield 'It mutates IsSuperTypeOfResult yes ' => [
6972 <<<'PHP'
7073 <?php
74+
7175 $trinary = \PHPStan\Type\IsSuperTypeOfResult::createYes();
7276 $trinary->yes();
7377 PHP
@@ -84,6 +88,7 @@ public static function mutationsProvider(): iterable
8488 yield 'It does not double negate ' => [
8589 <<<'PHP'
8690 <?php
91+
8792 $trinary = \PHPStan\Type\IsSuperTypeOfResult::createYes();
8893 !$trinary->yes();
8994 PHP
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public static function mutationsProvider(): iterable
2727 yield 'It mutates true() ' => [
2828 <<<'PHP'
2929 <?php
30+
3031 $context = TypeSpecifierContext::createNull();
3132 $context->true();
3233 PHP
@@ -43,6 +44,7 @@ public static function mutationsProvider(): iterable
4344 yield 'It mutates truthy() ' => [
4445 <<<'PHP'
4546 <?php
47+
4648 $context = TypeSpecifierContext::createNull();
4749 $context->truthy();
4850 PHP
@@ -59,6 +61,7 @@ public static function mutationsProvider(): iterable
5961 yield 'It mutates false() ' => [
6062 <<<'PHP'
6163 <?php
64+
6265 $context = TypeSpecifierContext::createNull();
6366 $context->false();
6467 PHP
@@ -75,6 +78,7 @@ public static function mutationsProvider(): iterable
7578 yield 'It mutates falsey() ' => [
7679 <<<'PHP'
7780 <?php
81+
7882 $context = TypeSpecifierContext::createNull();
7983 $context->falsey();
8084 PHP
@@ -91,6 +95,7 @@ public static function mutationsProvider(): iterable
9195 yield 'It skips null() ' => [
9296 <<<'PHP'
9397 <?php
98+
9499 $context = TypeSpecifierContext::createNull();
95100 $context->null();
96101 PHP
You can’t perform that action at this time.
0 commit comments