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
2 changes: 1 addition & 1 deletion src/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function setVersion(string $version): void
*
* @param callable|null $function
*/
public function setVerifyResponse(callable $function = null): void
public function setVerifyResponse(?callable $function = null): void
{
$this->verifyResponseCallback = $function;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Operator.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function deleteBy(string $field, $value, string $deleteMethodName = 'd
*
* @return array
*/
protected function getItems($structClass, $infoTag, $field = null, $value = null, callable $filter = null): array
protected function getItems($structClass, $infoTag, $field = null, $value = null, ?callable $filter = null): array
{
$packet = $this->client->getPacket();
$getTag = $packet->addChild($this->wrapperTag)->addChild('get');
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Operator/Webspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getLimits(string $field, $value): Struct\Limits
*
* @return Struct\Info
*/
public function create(array $properties, array $hostingProperties = null, string $planName = ''): Struct\Info
public function create(array $properties, ?array $hostingProperties = null, string $planName = ''): Struct\Info
{
$packet = $this->client->getPacket();
$info = $packet->addChild($this->wrapperTag)->addChild('add');
Expand Down