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
5656 *
5757 * @return $this
5858 */
59- public function push (Token $ token )
59+ public function push (Token $ token ): self
6060 {
6161 $ this ->tokens [] = $ token ;
6262
@@ -68,7 +68,7 @@ public function push(Token $token)
6868 *
6969 * @return $this
7070 */
71- public function freeze ()
71+ public function freeze (): self
7272 {
7373 return $ this ;
7474 }
Original file line number Diff line number Diff line change @@ -30,40 +30,38 @@ interface ExtensionInterface
3030 *
3131 * @return callable[]
3232 */
33- public function getNodeTranslators ();
33+ public function getNodeTranslators (): array ;
3434
3535 /**
3636 * Returns combination translators.
3737 *
3838 * @return callable[]
3939 */
40- public function getCombinationTranslators ();
40+ public function getCombinationTranslators (): array ;
4141
4242 /**
4343 * Returns function translators.
4444 *
4545 * @return callable[]
4646 */
47- public function getFunctionTranslators ();
47+ public function getFunctionTranslators (): array ;
4848
4949 /**
5050 * Returns pseudo-class translators.
5151 *
5252 * @return callable[]
5353 */
54- public function getPseudoClassTranslators ();
54+ public function getPseudoClassTranslators (): array ;
5555
5656 /**
5757 * Returns attribute operation translators.
5858 *
5959 * @return callable[]
6060 */
61- public function getAttributeMatchingTranslators ();
61+ public function getAttributeMatchingTranslators (): array ;
6262
6363 /**
6464 * Returns extension name.
65- *
66- * @return string
6765 */
68- public function getName ();
66+ public function getName (): string ;
6967}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function __construct(int $flags = 0)
4141 /**
4242 * @return $this
4343 */
44- public function setFlag (int $ flag , bool $ on )
44+ public function setFlag (int $ flag , bool $ on ): self
4545 {
4646 if ($ on && !$ this ->hasFlag ($ flag )) {
4747 $ this ->flags += $ flag ;
You can’t perform that action at this time.
0 commit comments