Skip to content

Commit 7f1917f

Browse files
committed
PHPStan: Ignore function exist check always being true.
LDAP functions are certainly required to be compiled into PHP. This needs to be checked.
1 parent 01650e1 commit 7f1917f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/LdapSyncCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ public function execute(InputInterface $input, OutputInterface $output): ?int
271271
"ldap_search",
272272
"ldap_get_entries",
273273
] as $ldapFunction) {
274+
// @phpstan-ignore function.alreadyNarrowedType
274275
if (!function_exists($ldapFunction)) {
275276
$this->logger->critical(sprintf("PHP-LDAP function \"%s\" does not exist.", $ldapFunction));
276277
return Command::FAILURE;

0 commit comments

Comments
 (0)