Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"docs": "https://book.cakephp.org/authentication/3/en/"
},
"require": {
"php": ">=8.1",
"cakephp/http": "^5.0",
"laminas/laminas-diactoros": "^3.0",
"psr/http-client": "^1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Identifier/Ldap/ExtensionAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getConnection(): Connection
*
* @param string $host Hostname
* @param int $port Port
* @param array $options Additonal LDAP options
* @param array $options Additional LDAP options
* @return void
*/
public function connect(string $host, int $port, array $options): void
Expand All @@ -110,7 +110,7 @@ public function connect(string $host, int $port, array $options): void
$this->_unsetErrorHandler();

foreach ($options as $option => $value) {
$this->setOption($option, $value);
$this->setOption((int)$option, $value);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/UrlChecker/DefaultUrlChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function check(ServerRequestInterface $request, $loginUrls, array $option
* method and inject additional options without the need to use the
* MergeVarsTrait.
*
* @param array $options Options to merge in
* @param array<string, mixed> $options Options to merge in
* @return array
*/
protected function _mergeDefaultOptions(array $options): array
Expand All @@ -80,7 +80,7 @@ protected function _mergeDefaultOptions(array $options): array
/**
* Gets the checker function name or a callback
*
* @param array $options Array of options
* @param array<string, mixed> $options Array of options
* @return callable
*/
protected function _getChecker(array $options): callable
Expand Down
2 changes: 1 addition & 1 deletion src/UrlChecker/UrlCheckerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface UrlCheckerInterface
*
* @param \Psr\Http\Message\ServerRequestInterface $request Server Request
* @param array|string $loginUrls Login URL string or array of URLs
* @param array $options Array of options
* @param array<string, mixed> $options Array of options
* @return bool
*/
public function check(ServerRequestInterface $request, array|string $loginUrls, array $options = []): bool;
Expand Down