Skip to content

Commit 86dd636

Browse files
authored
Merge pull request #713 from cakephp/3.x-cleanup
Add PHP min version for user and IDE.
2 parents 75ad8e3 + 3c63e07 commit 86dd636

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"docs": "https://book.cakephp.org/authentication/3/en/"
2424
},
2525
"require": {
26+
"php": ">=8.1",
2627
"cakephp/http": "^5.0",
2728
"laminas/laminas-diactoros": "^3.0",
2829
"psr/http-client": "^1.0",

src/Identifier/Ldap/ExtensionAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getConnection(): Connection
8989
*
9090
* @param string $host Hostname
9191
* @param int $port Port
92-
* @param array $options Additonal LDAP options
92+
* @param array $options Additional LDAP options
9393
* @return void
9494
*/
9595
public function connect(string $host, int $port, array $options): void
@@ -110,7 +110,7 @@ public function connect(string $host, int $port, array $options): void
110110
$this->_unsetErrorHandler();
111111

112112
foreach ($options as $option => $value) {
113-
$this->setOption($option, $value);
113+
$this->setOption((int)$option, $value);
114114
}
115115
}
116116

src/UrlChecker/DefaultUrlChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function check(ServerRequestInterface $request, $loginUrls, array $option
6969
* method and inject additional options without the need to use the
7070
* MergeVarsTrait.
7171
*
72-
* @param array $options Options to merge in
72+
* @param array<string, mixed> $options Options to merge in
7373
* @return array
7474
*/
7575
protected function _mergeDefaultOptions(array $options): array
@@ -80,7 +80,7 @@ protected function _mergeDefaultOptions(array $options): array
8080
/**
8181
* Gets the checker function name or a callback
8282
*
83-
* @param array $options Array of options
83+
* @param array<string, mixed> $options Array of options
8484
* @return callable
8585
*/
8686
protected function _getChecker(array $options): callable

src/UrlChecker/UrlCheckerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface UrlCheckerInterface
2828
*
2929
* @param \Psr\Http\Message\ServerRequestInterface $request Server Request
3030
* @param array|string $loginUrls Login URL string or array of URLs
31-
* @param array $options Array of options
31+
* @param array<string, mixed> $options Array of options
3232
* @return bool
3333
*/
3434
public function check(ServerRequestInterface $request, array|string $loginUrls, array $options = []): bool;

0 commit comments

Comments
 (0)