Skip to content

Commit 747b936

Browse files
committed
fix(crl): suppress UndefinedConstant inline in PhpLdapConnection
CI environments with the php-ldap extension installed do not trigger UndefinedConstant for LDAP_OPT_* constants, so the baseline entry became a stale UnusedBaselineEntry. Local environments without php-ldap still need the suppression, which is now handled via an inline @psalm-suppress on the configure() method instead of the shared baseline. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 1ebb445 commit 747b936

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Service/Crl/Ldap/PhpLdapConnection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function connect(string $host, int $port): mixed {
3030
return $conn;
3131
}
3232

33+
/** @psalm-suppress UndefinedConstant */
3334
#[\Override]
3435
public function configure(mixed $ldap): void {
3536
ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3);

0 commit comments

Comments
 (0)