mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
type hint fixes
This commit is contained in:
parent
4d09f2a55c
commit
0e69997579
11 changed files with 17 additions and 29 deletions
|
|
@ -91,13 +91,13 @@ class Parser {
|
|||
/**
|
||||
* check if the first line holds a connection failure
|
||||
*
|
||||
* @param $line
|
||||
* @param string $line
|
||||
* @throws AuthenticationException
|
||||
* @throws InvalidHostException
|
||||
* @throws NoLoginServerException
|
||||
* @throws AccessDeniedException
|
||||
*/
|
||||
public function checkConnectionError($line) {
|
||||
public function checkConnectionError(string $line) {
|
||||
$line = rtrim($line, ')');
|
||||
if (substr($line, -23) === ErrorCodes::LogonFailure) {
|
||||
throw new AuthenticationException('Invalid login');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue