File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 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
9393        return  $ this FQCN ->matches ($ pattern
9494    }
9595
96-     public  function  namespaceMatchesOneOfTheseNamespaces (array   $ classesToBeExcludedbool 
96+     public  function  namespaceMatchesOneOfTheseNamespaces (string  ... $ classesToBeExcludedbool 
9797    {
9898        foreach  ($ classesToBeExcludedas  $ classToBeExcluded
9999            if  ($ this namespaceMatches ($ classToBeExcluded
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function __construct(
3838
3939    public  function  check (ClassDescription $ classDescriptionViolations $ violationsvoid 
4040    {
41-         if  ($ classDescriptionnamespaceMatchesOneOfTheseNamespaces ($ this classesToBeExcluded )) {
41+         if  ($ classDescriptionnamespaceMatchesOneOfTheseNamespaces (... $ this classesToBeExcluded )) {
4242            return ;
4343        }
4444
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():
3636    {
3737        $ cd$ this builder ->build ();
3838
39-         $ this assertTrue ($ cdnamespaceMatchesOneOfTheseNamespaces ([ 'Fruit ' ] ));
39+         $ this assertTrue ($ cdnamespaceMatchesOneOfTheseNamespaces ('Fruit ' ,  ' Banana ' 
4040    }
4141
4242    public  function  test_should_return_true_if_is_annotated_with (): void 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments