updated plugin AuthLDAP version 2.6.2

This commit is contained in:
2024-06-27 12:10:42 +00:00
committed by Gitium
parent 4e493c268e
commit 65d26d4d83
10 changed files with 81 additions and 35 deletions

View File

@ -1,13 +1,13 @@
<?php
declare(strict_types=1);
/**
* Copyright Andreas Heigl <andreas@heigl.org>
*
* Licensed under the MIT-license. For details see the included file LICENSE.md
*/
declare(strict_types=1);
namespace Org_Heigl\AuthLdap\Exception;
use RuntimeException;

View File

@ -1,13 +1,13 @@
<?php
declare(strict_types=1);
/**
* Copyright Andreas Heigl <andreas@heigl.org>
*
* Licensed under the MIT-license. For details see the included file LICENSE.md
*/
declare(strict_types=1);
namespace Org_Heigl\AuthLdap;
use function json_decode;

View File

@ -1,16 +1,17 @@
<?php
declare(strict_types=1);
/**
* Copyright Andreas Heigl <andreas@heigl.org>
*
* Licensed under the MIT-license. For details see the included file LICENSE.md
*/
declare(strict_types=1);
namespace Org_Heigl\AuthLdap;
use Org_Heigl\AuthLdap\Exception\UnknownOption;
use function array_key_exists;
class Options

View File

@ -23,7 +23,7 @@ class UserRoleHandler
* @param string[] $roles
* @return void
*/
public function addRolesToUser(WP_User $user, $roles) : void
public function addRolesToUser(WP_User $user, $roles): void
{
if ($roles === []) {
return;