mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-10 09:17:39 +01:00
Raised minimum PHP version to 8.1 (#19879)
This commit is contained in:
@@ -16,7 +16,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class RegularExpressionValidatorTest extends TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@@ -50,7 +50,7 @@ class RegularExpressionValidatorTest extends TestCase
|
||||
public function testMessageSetOnInit()
|
||||
{
|
||||
$val = new RegularExpressionValidator(['pattern' => '/^[a-zA-Z0-9](\.)?([^\/]*)$/m']);
|
||||
$this->assertInternalType('string', $val->message);
|
||||
$this->assertIsString($val->message);
|
||||
}
|
||||
|
||||
public function testInitException()
|
||||
|
||||
Reference in New Issue
Block a user