mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
#10026 added style changes to pass phpcs check
This commit is contained in:
parent
fc1d3e09ab
commit
9590279c62
@ -2,9 +2,14 @@
|
||||
|
||||
namespace Psalm\Tests;
|
||||
|
||||
use Exception;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;
|
||||
|
||||
use function version_compare;
|
||||
|
||||
use const PHP_VERSION;
|
||||
|
||||
class DateTimeTest extends TestCase
|
||||
{
|
||||
use ValidCodeAnalysisTestTrait;
|
||||
@ -14,7 +19,7 @@ class DateTimeTest extends TestCase
|
||||
$context = new Context();
|
||||
|
||||
if (version_compare(PHP_VERSION, '8.3', '>')) {
|
||||
$this->expectException(\Exception::class);
|
||||
$this->expectException(Exception::class);
|
||||
$this->expectExceptionMessage('DateTime::modify(): Failed to parse time string (foo) at position 0 (f)');
|
||||
}
|
||||
|
||||
@ -47,7 +52,7 @@ class DateTimeTest extends TestCase
|
||||
$context = new Context();
|
||||
|
||||
if (version_compare(PHP_VERSION, '8.3', '>')) {
|
||||
$this->expectException(\Exception::class);
|
||||
$this->expectException(Exception::class);
|
||||
$this->expectExceptionMessage('DateTime::modify(): Failed to parse time string (bar) at position 0 (b)');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user