File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 15
15
16
16
class Alias
17
17
{
18
- private $ id ;
19
- private $ deprecation = [];
18
+ private string $ id ;
19
+ private array $ deprecation = [];
20
20
21
21
public function __construct (string $ id )
22
22
{
23
23
$ this ->id = $ id ;
24
24
}
25
25
26
- /**
27
- * @return static
28
- */
29
- public function withId (string $ id ): self
26
+ public function withId (string $ id ): static
30
27
{
31
28
$ new = clone $ this ;
32
29
Original file line number Diff line number Diff line change 16
16
17
17
class AliasConfigurator
18
18
{
19
- private $ alias ;
19
+ private Alias $ alias ;
20
20
21
21
public function __construct (Alias $ alias )
22
22
{
@@ -34,7 +34,7 @@ public function __construct(Alias $alias)
34
34
*
35
35
* @throws InvalidArgumentException when the message template is invalid
36
36
*/
37
- public function deprecate (string $ package , string $ version , string $ message ): self
37
+ public function deprecate (string $ package , string $ version , string $ message ): static
38
38
{
39
39
$ this ->alias ->setDeprecated ($ package , $ version , $ message );
40
40
You can’t perform that action at this time.
0 commit comments