Commit 737a165f authored by Thomas Hamel's avatar Thomas Hamel
Browse files

Compatibilité PHP 8.4

parent 9f0d2819
Loading
Loading
Loading
Loading
Loading
+3 −0
Changes for CHANGELOG.md: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
Journal des modifications
=========================
8.0.0 (02/12/2025)
------------------
- Compatibilité PHP 8.4

7.0.0 (02/12/2025)
------------------
+4 −4
Changes for src/UnicaenPrivilege/Assertion/AbstractAssertion.php: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ abstract class AbstractAssertion implements AssertionInterface
     *
     * @return bool
     */
    public final function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null)
    public final function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null)
    {
        $this->setAcl($acl);
        $this->setRole($role);
@@ -141,7 +141,7 @@ abstract class AbstractAssertion implements AssertionInterface
     *
     * @return AbstractAssertion
     */
    public function setAcl(Acl $acl = null)
    public function setAcl(?Acl $acl = null)
    {
        $this->acl = $acl;

@@ -172,7 +172,7 @@ abstract class AbstractAssertion implements AssertionInterface
     *
     * @return AbstractAssertion
     */
    public function setRole(RoleInterface $role = null)
    public function setRole(?RoleInterface $role = null)
    {
        $this->role = $role;

@@ -279,7 +279,7 @@ abstract class AbstractAssertion implements AssertionInterface
     *
     * @return boolean
     */
    protected function assertOther(ResourceInterface $resource = null, $privilege = null)
    protected function assertOther(?ResourceInterface $resource = null, $privilege = null)
    {
        return true;
    }
+1 −1
Changes for src/UnicaenPrivilege/Assertion/AssertionFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class AssertionFactory implements FactoryInterface
     *
     * @return UserContext
     */
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        /* @var $application Application */
        $application = $container->get('Application');
+1 −1
Changes for src/UnicaenPrivilege/Assertion/Perimetre/AbstractPerimetreAssertionFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class AbstractPerimetreAssertionFactory implements AbstractFactoryInterface
        return $this->isPerimetreAssertionRequested($requestedName, $perimetreConfig);
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $config = $container->get('Config');
        $perimetreConfig = $config['unicaen-perimetre'];
+1 −1
Changes for src/UnicaenPrivilege/Controller/PerimetreCategorieControllerFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class PerimetreCategorieControllerFactory
     * @param array|null $options
     * @return PerimetreCategorieController|object
     */
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        /**
         * @var PerimetreCategorieService $categorieService
Loading