File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public function namespaceMatches(string $pattern): bool
93
93
return $ this ->FQCN ->matches ($ pattern );
94
94
}
95
95
96
- public function namespaceMatchesOneOfTheseNamespaces (array $ classesToBeExcluded ): bool
96
+ public function namespaceMatchesOneOfTheseNamespaces (string ... $ classesToBeExcluded ): bool
97
97
{
98
98
foreach ($ classesToBeExcluded as $ classToBeExcluded ) {
99
99
if ($ this ->namespaceMatches ($ classToBeExcluded )) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function __construct(
38
38
39
39
public function check (ClassDescription $ classDescription , Violations $ violations ): void
40
40
{
41
- if ($ classDescription ->namespaceMatchesOneOfTheseNamespaces ($ this ->classesToBeExcluded )) {
41
+ if ($ classDescription ->namespaceMatchesOneOfTheseNamespaces (... $ this ->classesToBeExcluded )) {
42
42
return ;
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function test_should_return_true_if_there_class_is_in_namespace_array():
36
36
{
37
37
$ cd = $ this ->builder ->build ();
38
38
39
- $ this ->assertTrue ($ cd ->namespaceMatchesOneOfTheseNamespaces ([ 'Fruit ' ] ));
39
+ $ this ->assertTrue ($ cd ->namespaceMatchesOneOfTheseNamespaces ('Fruit ' , ' Banana ' ));
40
40
}
41
41
42
42
public function test_should_return_true_if_is_annotated_with (): void
You can’t perform that action at this time.
0 commit comments