Skip to content

Commit a3522b7

Browse files
committed
cs
1 parent 034a4d6 commit a3522b7

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

e2e/composer-max-version/test.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
\PHPStan\Testing\assertType('int<70100, 80300>', PHP_VERSION_ID);
4-
\PHPStan\Testing\assertType('int<7, 8>', PHP_MAJOR_VERSION);
3+
\PHPStan\Testing\assertType('int<50207, 80300>', PHP_VERSION_ID);
4+
\PHPStan\Testing\assertType('int<5, 8>', PHP_MAJOR_VERSION);
55
\PHPStan\Testing\assertType('int<0, max>', PHP_MINOR_VERSION);
66
\PHPStan\Testing\assertType('int<0, max>', PHP_RELEASE_VERSION);
77

8-
\PHPStan\Testing\assertType('1', version_compare(PHP_VERSION, '7.0.0'));
9-
\PHPStan\Testing\assertType('false', version_compare(PHP_VERSION, '7.0.0', '<'));
10-
\PHPStan\Testing\assertType('true', version_compare(PHP_VERSION, '7.0.0', '>'));
8+
\PHPStan\Testing\assertType('-1|0|1', version_compare(PHP_VERSION, '7.0.0'));
9+
\PHPStan\Testing\assertType('bool', version_compare(PHP_VERSION, '7.0.0', '<'));
10+
\PHPStan\Testing\assertType('bool', version_compare(PHP_VERSION, '7.0.0', '>'));

src/Php/ComposerPhpVersionFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use function is_file;
1616
use function is_int;
1717
use function is_string;
18-
use function max;
1918
use function min;
2019
use function sprintf;
2120

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,7 @@ public function testBug5527(): void
457457
public function testBug5639(): void
458458
{
459459
$errors = $this->runAnalyse(__DIR__ . '/data/bug-5639.php');
460-
$this->assertCount(1, $errors);
461-
$this->assertSame('If condition is always false.', $errors[0]->getMessage());
462-
$this->assertSame(5, $errors[0]->getLine());
460+
$this->assertNoErrors($errors);
463461
}
464462

465463
public function testBug5657(): void

0 commit comments

Comments
 (0)