mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
psalm fixes
This commit is contained in:
parent
ba26d98b46
commit
cce108848c
5 changed files with 18 additions and 9 deletions
|
|
@ -91,7 +91,7 @@ class RawConnection {
|
|||
public function isValid(): bool {
|
||||
if (is_resource($this->process)) {
|
||||
$status = proc_get_status($this->process);
|
||||
return (bool)$status['running'];
|
||||
return $status['running'];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -202,6 +202,14 @@ class RawConnection {
|
|||
* @psalm-assert null $this->process
|
||||
*/
|
||||
public function close(bool $terminate = true): void {
|
||||
$this->close_process($terminate);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $terminate
|
||||
* @psalm-assert null $this->process
|
||||
*/
|
||||
protected function close_process(bool $terminate = true): void {
|
||||
if (!is_resource($this->process)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue