Issues (132)

src/OptionValue.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
 * Represents the value of an option.
13
 */
14
class OptionValue extends TdObject
15
{
16
    public const TYPE_NAME = 'OptionValue';
17
18
    public function __construct()
19
    {
20
    }
21
22
    public static function fromArray(array $array): OptionValue
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): OptionValue

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