Skip to content

Commit 1dd5a38

Browse files
committed
Fix method signature compatibility
1 parent add0c4e commit 1dd5a38

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Phug/Util/CompatibilityUtil/TestCaseUntyped.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ protected function finishTest()
2121
// Override
2222
}
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
$this->prepareTest();
2727
}
2828

29-
protected function tearDown()
29+
protected function tearDown(): void
3030
{
3131
$this->finishTest();
3232
}
3333

34-
public static function assertMatchesRegularExpression($pattern, $string, $message = '')
34+
public static function assertMatchesRegularExpression(string $pattern, string $string, string $message = ''): void
3535
{
3636
if (!method_exists(parent::class, 'assertMatchesRegularExpression')) {
3737
self::assertRegExp($pattern, $string, $message);
@@ -42,7 +42,7 @@ public static function assertMatchesRegularExpression($pattern, $string, $messag
4242
parent::assertMatchesRegularExpression($pattern, $string, $message);
4343
}
4444

45-
public static function assertFileDoesNotExist($filename, $message = '')
45+
public static function assertFileDoesNotExist(string $filename, string $message = ''): void
4646
{
4747
if (!method_exists(parent::class, 'assertFileDoesNotExist')) {
4848
self::assertFileNotExists($filename, $message);
@@ -53,7 +53,7 @@ public static function assertFileDoesNotExist($filename, $message = '')
5353
parent::assertFileDoesNotExist($filename, $message);
5454
}
5555

56-
public static function assertIsArray($actual, $message = '')
56+
public static function assertIsArray($actual, string $message = ''): void
5757
{
5858
if (!method_exists(parent::class, 'assertIsArray')) {
5959
self::assertSame('array', gettype($actual));

0 commit comments

Comments
 (0)