mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Solved deprecated hint concerning $crudType
This commit is contained in:
parent
ac5a3f1d5a
commit
84ba9f9c2a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user