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:
parent
1e1ffe164f
commit
603dfa2e5a
@ -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)');
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ use function version_compare;
|
||||
|
||||
use const PHP_OS;
|
||||
use const PHP_VERSION;
|
||||
use const PHP_VERSION_ID;
|
||||
|
||||
trait ValidCodeAnalysisTestTrait
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user