Skip to content

Commit

Permalink
#10026 cleanup phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
thbley committed Jul 21, 2023
1 parent 1e1ffe1 commit 603dfa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/DateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use Psalm\Context;
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;

use function version_compare;

use const PHP_VERSION;
use const PHP_VERSION_ID;

class DateTimeTest extends TestCase
{
Expand Down Expand Up @@ -51,7 +49,7 @@ public function testModifyWithBothConstant(): void
{
$context = new Context();

if (version_compare(PHP_VERSION, '8.3', '>')) {
if (PHP_VERSION_ID >= 8_03_00) {
$this->expectException(Exception::class);
$this->expectExceptionMessage('DateTime::modify(): Failed to parse time string (bar) at position 0 (b)');
}
Expand Down
1 change: 1 addition & 0 deletions tests/Traits/ValidCodeAnalysisTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

use const PHP_OS;
use const PHP_VERSION;
use const PHP_VERSION_ID;

trait ValidCodeAnalysisTestTrait
{
Expand Down

0 comments on commit 603dfa2

Please sign in to comment.