GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (74)

src/Traits/ObjectAccessTrait.php (1 issue)

1
<?php
2
3
namespace AlibabaCloud\Client\Traits;
4
5
/**
6
 * Trait ObjectAccessTrait
7
 *
8
 * @package   AlibabaCloud\Client\Traits
9
 */
10
trait ObjectAccessTrait
11
{
12
    /**
13
     * @param string $name
14
     *
15
     * @return mixed|null
16
     */
17 4
    public function __get($name)
18
    {
19 4
        if (!isset($this->data[$name])) {
20 1
            return null;
21
        }
22
23 4
        return \json_decode(\json_encode($this->data))->$name;
24
    }
25
26
    /**
27
     * @param string $name
28
     * @param mixed  $value
29
     */
30 13
    public function __set($name, $value)
31
    {
32 13
        $this->data[$name] = $value;
0 ignored issues
show
Bug Best Practice introduced by
The property data does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
33 13
    }
34
35
    /**
36
     * @param string $name
37
     *
38
     * @return bool
39
     */
40 2
    public function __isset($name)
41
    {
42 2
        return isset($this->data[$name]);
43
    }
44
45
    /**
46
     * @param $name
47
     *
48
     * @return void
49
     */
50 1
    public function __unset($name)
51
    {
52 1
        unset($this->data[$name]);
53 1
    }
54
}
55