1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

#10026 cleanup phpcs

This commit is contained in:
Thomas Bley 2023-07-21 22:57:49 +02:00
parent 1e1ffe164f
commit 603dfa2e5a
2 changed files with 3 additions and 4 deletions

View File

@ -6,9 +6,7 @@ use Exception;
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
{
@ -51,7 +49,7 @@ class DateTimeTest extends TestCase
{
$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)');
}

View File

@ -14,6 +14,7 @@ use function version_compare;
use const PHP_OS;
use const PHP_VERSION;
use const PHP_VERSION_ID;
trait ValidCodeAnalysisTestTrait
{