mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	Solved deprecated hint concerning $crudType
This commit is contained in:
		| @@ -68,11 +68,11 @@ final class RightLayerCombinationService implements RightLayerCombinationService | ||||
|      * | ||||
|      * @see \Infinito\Domain\Right\RightLayerCombinationServiceInterface::getPossibleLayers() | ||||
|      */ | ||||
|     public function getPossibleLayers(string $crudType): array | ||||
|     public function getPossibleLayers(string $crud): array | ||||
|     { | ||||
|         $possibleLayers = []; | ||||
|         foreach ($this->possibleCombinations as $layer => $possibleCombination) { | ||||
|             if (in_array($crudType, $possibleCombination)) { | ||||
|             if (in_array($crud, $possibleCombination)) { | ||||
|                 $possibleLayers[] = $layer; | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -26,9 +26,7 @@ interface RightLayerCombinationServiceInterface | ||||
|      * | ||||
|      * @see CRUDType::getValues() | ||||
|      * | ||||
|      * @param string $crud | ||||
|      * | ||||
|      * @return array The layers which exist for a right | ||||
|      */ | ||||
|     public function getPossibleLayers(string $crudType): array; | ||||
|     public function getPossibleLayers(string $crud): array; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user