@@ -33,7 +33,7 @@ class AttributeAddUsersGroups extends BaseFilter
3333 /**
3434 * Initialize this filter.
3535 *
36- * @param array $config Configuration information about this filter.
36+ * @param array<mixed> $config Configuration information about this filter.
3737 * @param mixed $reserved For future use.
3838 */
3939 public function __construct (array $ config , $ reserved )
@@ -51,7 +51,7 @@ public function __construct(array $config, $reserved)
5151 * LDAP search filters to be added to the base filters for this authproc-filter.
5252 * It's an array of key => value pairs that will be translated to (key=value) in the ldap query.
5353 *
54- * @var array
54+ * @var array<mixed>
5555 */
5656 protected array $ additional_filters ;
5757
@@ -63,7 +63,7 @@ public function __construct(array $config, $reserved)
6363 * are then added to the request attributes.
6464 *
6565 * @throws \SimpleSAML\Error\Exception
66- * @param array &$state
66+ * @param array<mixed> &$state
6767 */
6868 public function process (array &$ state ): void
6969 {
@@ -124,8 +124,8 @@ public function process(array &$state): void
124124 * get their group membership, recursively.
125125 *
126126 * @throws \SimpleSAML\Error\Exception
127- * @param array $attributes
128- * @return array
127+ * @param array<mixed> $attributes
128+ * @return array<mixed>
129129 */
130130 protected function getGroups (array $ attributes ): array
131131 {
@@ -291,13 +291,11 @@ protected function getGroups(array $attributes): array
291291 $ groups = [];
292292 foreach ($ entries as $ entry ) {
293293 if ($ entry ->hasAttribute ($ return_attribute )) {
294- /** @psalm-var array $values */
295294 $ values = $ entry ->getAttribute ($ return_attribute );
296295 $ groups [] = array_pop ($ values );
297296 continue ;
298297 } elseif ($ entry ->hasAttribute (strtolower ($ return_attribute ))) {
299298 // Some backends return lowercase attributes
300- /** @psalm-var array $values */
301299 $ values = $ entry ->getAttribute (strtolower ($ return_attribute ));
302300 $ groups [] = array_pop ($ values );
303301 continue ;
@@ -330,9 +328,9 @@ protected function getGroups(array $attributes): array
330328 * Avoids loops by only searching a DN once. Returns
331329 * the list of groups found.
332330 *
333- * @param array $memberOf
334- * @param array $options
335- * @return array
331+ * @param array<mixed> $memberOf
332+ * @param array<mixed> $options
333+ * @return array<mixed>
336334 */
337335 protected function search (array $ memberOf , array $ options ): array
338336 {
0 commit comments