Raised minimum PHP version to 8.1 (#19879)

This commit is contained in:
Wilmer Arambula
2023-07-10 09:48:32 -04:00
committed by GitHub
parent b9e5a87f54
commit 2e37b5c87d
226 changed files with 2292 additions and 2053 deletions

View File

@@ -17,7 +17,7 @@ use yiiunit\TestCase;
class StringHelperTest extends TestCase
{
protected function setUp()
protected function setUp(): void
{
parent::setUp();
@@ -167,7 +167,7 @@ class StringHelperTest extends TestCase
/**
* Rules that should work the same for case-sensitive and case-insensitive `startsWith()`.
*/
public function providerStartsWith()
public static function providerStartsWith()
{
return [
// positive check
@@ -223,7 +223,7 @@ class StringHelperTest extends TestCase
/**
* Rules that should work the same for case-sensitive and case-insensitive `endsWith()`.
*/
public function providerEndsWith()
public static function providerEndsWith()
{
return [
// positive check
@@ -305,7 +305,7 @@ class StringHelperTest extends TestCase
$this->assertEquals($output, $decoded);
}
public function base64UrlEncodedStringsProvider()
public static function base64UrlEncodedStringsProvider()
{
return [
['This is an encoded string', 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw=='],
@@ -319,7 +319,7 @@ class StringHelperTest extends TestCase
* Data provider for [[testMatchWildcard()]]
* @return array test data.
*/
public function dataProviderMatchWildcard()
public static function dataProviderMatchWildcard()
{
return [
// *
@@ -402,7 +402,7 @@ class StringHelperTest extends TestCase
$this->assertSame($expectedResult, StringHelper::matchWildcard($pattern, $string, $options));
}
public function dataProviderMb_ucfirst()
public static function dataProviderMb_ucfirst()
{
return [
['foo', 'Foo'],
@@ -424,7 +424,7 @@ class StringHelperTest extends TestCase
$this->assertSame($expectedResult, StringHelper::mb_ucfirst($string));
}
public function dataProviderMb_ucwords()
public static function dataProviderMb_ucwords()
{
return [
['foo', 'Foo'],
@@ -463,7 +463,7 @@ class StringHelperTest extends TestCase
$this->assertSame($expectedResult, StringHelper::dirname($string));
}
public function dataProviderDirname()
public static function dataProviderDirname()
{
return [
['\\foo\\bar\\test', '\foo\bar'],