@@ -37,13 +37,13 @@ public function setUp(): void
37
37
38
38
public function assertTemplatePath (string $ path , TemplatePath $ templatePath , ?string $ message = null ): void
39
39
{
40
- $ message = $ message ?? sprintf ('Failed to assert TemplatePath contained path %s ' , $ path );
40
+ $ message ??= sprintf ('Failed to assert TemplatePath contained path %s ' , $ path );
41
41
$ this ->assertEquals ($ path , $ templatePath ->getPath (), $ message );
42
42
}
43
43
44
44
public function assertTemplatePathString (string $ path , TemplatePath $ templatePath , ?string $ message = null ): void
45
45
{
46
- $ message = $ message ?? sprintf ('Failed to assert TemplatePath casts to string path %s ' , $ path );
46
+ $ message ??= sprintf ('Failed to assert TemplatePath casts to string path %s ' , $ path );
47
47
$ this ->assertEquals ($ path , (string ) $ templatePath , $ message );
48
48
}
49
49
@@ -52,7 +52,7 @@ public function assertTemplatePathNamespace(
52
52
TemplatePath $ templatePath ,
53
53
?string $ message = null
54
54
): void {
55
- $ message = $ message ?? sprintf (
55
+ $ message ??= sprintf (
56
56
'Failed to assert TemplatePath namespace matched %s ' ,
57
57
var_export ($ namespace , true )
58
58
);
@@ -61,7 +61,7 @@ public function assertTemplatePathNamespace(
61
61
62
62
public function assertEmptyTemplatePathNamespace (TemplatePath $ templatePath , ?string $ message = null ): void
63
63
{
64
- $ message = $ message ?? 'Failed to assert TemplatePath namespace was empty ' ;
64
+ $ message ??= 'Failed to assert TemplatePath namespace was empty ' ;
65
65
$ this ->assertEmpty ($ templatePath ->getNamespace (), $ message );
66
66
}
67
67
@@ -70,7 +70,7 @@ public function assertEqualTemplatePath(
70
70
TemplatePath $ received ,
71
71
?string $ message = null
72
72
): void {
73
- $ message = $ message ?? 'Failed to assert TemplatePaths are equal ' ;
73
+ $ message ??= 'Failed to assert TemplatePaths are equal ' ;
74
74
if (
75
75
$ expected ->getPath () !== $ received ->getPath ()
76
76
|| $ expected ->getNamespace () !== $ received ->getNamespace ()
0 commit comments