Solved deprecated hint concerning $crudType

This commit is contained in:
Kevin Veen-Birkenbach 2020-04-02 21:24:11 +02:00
parent ac5a3f1d5a
commit 84ba9f9c2a
2 changed files with 3 additions and 5 deletions

View File

@ -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;
}
}

View File

@ -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;
}