Browse Source
			
			
			Revert type casting to fix integration test, but it makes no sense to me atm
			
				Signed-off-by: Joas Schilling <coding@schilljs.com>
			
			
				pull/8429/head
			
			
		 
		
			
				
					
						
						Joas Schilling
					
					3 years ago
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 74434EFE0D2E2205
				  	
				  
				
			
		
		
		
	
		
			
				 2 changed files with 
3 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					lib/Files/Util.php
				
 
			
				- 
					
					
					 
					tests/psalm-baseline.xml
				
 
			
		
		
			
				
					
					
						
							
								
									
										
											
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -67,7 +67,7 @@ class Util { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								if (!$node->getStorage()->instanceOfStorage(SharedStorage::class)) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									// The file is not a shared file,
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									// let's check the accesslist for mount points of groupfolders and external storages
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$mountsForFile = $this->userMountCache->getMountsForFileId((int) $fileId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$mountsForFile = $this->userMountCache->getMountsForFileId($fileId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$affectedUserIds = array_map(function (ICachedMountInfo $mount) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										return $mount->getUser()->getUID(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}, $mountsForFile); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
										
									
								
							
						 
					 
				 
			
		
			
				
					
					
						
							
								
									
										
											
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -181,7 +181,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </UndefinedClass> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  </file> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  <file src="lib/Files/Util.php"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <InvalidArgument occurrences="1"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <InvalidArgument occurrences="2"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <code>$fileId</code> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <code>SharedStorage::class</code> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </InvalidArgument> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  </file> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |