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.

PromoteEmployee::messageName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of the AL labs package
6
 *
7
 * (c) Arnaud Langlade
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Al\ResourceManagement\Application\Command;
14
15
use Ramsey\Uuid\Uuid;
16
use SimpleBus\Message\Name\NamedMessage;
17
18
final class PromoteEmployee implements NamedMessage
19
{
20
    /** @var string */
21
    public $id;
22
23
    /** @var string */
24
    public $position = '';
25
26
    /** @var int */
27
    public $salaryScale = 0;
28
29
    public function __construct(string $id)
30
    {
31
        $this->id = Uuid::fromString($id);
0 ignored issues
show
Documentation Bug introduced by
It seems like \Ramsey\Uuid\Uuid::fromString($id) of type object<Ramsey\Uuid\UuidInterface> is incompatible with the declared type string of property $id.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public static function messageName(): string
38
    {
39
        return 'promote_employee';
40
    }
41
}
42