File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class TokenStream
56
56
*
57
57
* @return $this
58
58
*/
59
- public function push (Token $ token )
59
+ public function push (Token $ token ): self
60
60
{
61
61
$ this ->tokens [] = $ token ;
62
62
@@ -68,7 +68,7 @@ public function push(Token $token)
68
68
*
69
69
* @return $this
70
70
*/
71
- public function freeze ()
71
+ public function freeze (): self
72
72
{
73
73
return $ this ;
74
74
}
Original file line number Diff line number Diff line change @@ -30,40 +30,38 @@ interface ExtensionInterface
30
30
*
31
31
* @return callable[]
32
32
*/
33
- public function getNodeTranslators ();
33
+ public function getNodeTranslators (): array ;
34
34
35
35
/**
36
36
* Returns combination translators.
37
37
*
38
38
* @return callable[]
39
39
*/
40
- public function getCombinationTranslators ();
40
+ public function getCombinationTranslators (): array ;
41
41
42
42
/**
43
43
* Returns function translators.
44
44
*
45
45
* @return callable[]
46
46
*/
47
- public function getFunctionTranslators ();
47
+ public function getFunctionTranslators (): array ;
48
48
49
49
/**
50
50
* Returns pseudo-class translators.
51
51
*
52
52
* @return callable[]
53
53
*/
54
- public function getPseudoClassTranslators ();
54
+ public function getPseudoClassTranslators (): array ;
55
55
56
56
/**
57
57
* Returns attribute operation translators.
58
58
*
59
59
* @return callable[]
60
60
*/
61
- public function getAttributeMatchingTranslators ();
61
+ public function getAttributeMatchingTranslators (): array ;
62
62
63
63
/**
64
64
* Returns extension name.
65
- *
66
- * @return string
67
65
*/
68
- public function getName ();
66
+ public function getName (): string ;
69
67
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function __construct(int $flags = 0)
41
41
/**
42
42
* @return $this
43
43
*/
44
- public function setFlag (int $ flag , bool $ on )
44
+ public function setFlag (int $ flag , bool $ on ): self
45
45
{
46
46
if ($ on && !$ this ->hasFlag ($ flag )) {
47
47
$ this ->flags += $ flag ;
You can’t perform that action at this time.
0 commit comments