Skip to content

Commit

Permalink
Strict types & PHPdoc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 20, 2024
1 parent 64cb7c3 commit 98c9309
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/mServer/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

namespace mServer;

//TODO: PHP8+ use CurlHandle;
use Ease\Shared;
use Ease\Functions;
use Riesenia\Pohoda;
Expand Down Expand Up @@ -144,7 +145,7 @@ class Client extends \Ease\Sand
*/
protected Pohoda $pohoda;
/**
* @var resource $curl
* @var \CurlHandle|resource $curl
*/
private $curl;

Expand Down Expand Up @@ -247,8 +248,6 @@ public function processInit($init): void
$this->loadFromPohoda($init);
} elseif (\is_array($init)) {
$this->takeData($init);
} elseif (preg_match('/\.(json|xml|csv)/', $init)) {
$this->takeData($this->getPohodaData(($init[0] !== '/') ? $this->evidenceUrlWithSuffix($init) : $init));
} else {
$this->loadFromPohoda($init);
}
Expand Down Expand Up @@ -602,9 +601,9 @@ public function commit()
* @param array<string,string> $data extra data
* @param null|mixed $filter
*
* @return int
* @return bool
*/
public function updateInPohoda($data = [], $filter = null)
public function updateInPohoda($data = [], $filter = null): bool
{
if (!empty($data)) {
$this->takeData($data);
Expand Down

0 comments on commit 98c9309

Please sign in to comment.