Issues (132)

src/Close.php (1 issue)

Severity
1
<?php
2
3
/**
4
 * This phpFile is auto-generated.
5
 */
6
7
declare(strict_types=1);
8
9
namespace AurimasNiekis\TdLibSchema;
10
11
/**
12
 * Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent.
13
 */
14
class Close extends TdFunction
15
{
16
    public const TYPE_NAME = 'close';
17
18
    public function __construct()
19
    {
20
    }
21
22
    public static function fromArray(array $array): Close
0 ignored issues
show
The parameter $array is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public static function fromArray(/** @scrutinizer ignore-unused */ array $array): Close

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
        return new static();
25
    }
26
27
    public function typeSerialize(): array
28
    {
29
        return ['@type' => static::TYPE_NAME];
30
    }
31
}
32