Commit 94145eed authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fix Php 8.4

parent 12585919
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/UnicaenPrivilege/Assertion/AbstractAssertion.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ abstract class AbstractAssertion implements AssertionInterface
     *
     * @return boolean
     */
    protected function assertEntity(ResourceInterface $entity, $privilege = null)
    protected function assertEntity(?ResourceInterface $entity, $privilege = null)
    {
        return true;
    }
+2 −1
Changes for src/UnicaenPrivilege/Service/Privilege/PrivilegeService.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -16,8 +16,9 @@ use UnicaenPrivilege\Provider\Privilege\PrivilegeEvents;
use UnicaenPrivilege\Provider\Privilege\Privileges;
use UnicaenPrivilege\Service\CommonService;
use UnicaenUtilisateur\Entity\Db\RoleInterface;
use BjyAuthorize\Provider\Resource\ProviderInterface;

class PrivilegeService extends CommonService implements EventManagerAwareInterface
class PrivilegeService extends CommonService implements EventManagerAwareInterface, ProviderInterface
{
    use PrivilegeCategorieServiceAwareTrait;
    use EventManagerAwareTrait;