Skip to content

Commit 7247e5d

Browse files
committed
Fix unit tests
1 parent 2029fdd commit 7247e5d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
- name: Setup PHP, with composer and extensions
159159
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
160160
with:
161-
php-version: '7.4'
161+
php-version: '8.0'
162162
extensions: intl, ldap, mbstring, xml
163163
tools: composer:v2
164164

@@ -199,7 +199,7 @@ jobs:
199199

200200
- name: Psalm
201201
continue-on-error: true
202-
uses: docker://vimeo/psalm-github-actions
202+
uses: php vendor/bin/psalm
203203

204204
- name: Psalter
205205
continue-on-error: true

lib/Auth/Ldap.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,12 @@ public function setOption($option, $value): void
618618
* The array of attributes and their values.
619619
* @see http://no.php.net/manual/en/function.ldap-read.php
620620
*/
621-
public function getAttributes(string $dn, $attributes = null, array $binaryAttributes = [], int $maxsize = null): array
622-
{
621+
public function getAttributes(
622+
string $dn,
623+
$attributes = null,
624+
array $binaryAttributes = [],
625+
int $maxsize = null,
626+
): array {
623627
// Preparations, including a pretty debug message...
624628
$description = 'all attributes';
625629
if (is_array($attributes)) {

0 commit comments

Comments
 (0)