Skip to content

Commit 2867931

Browse files
committed
[CS] Enforces null type hint on last position in phpDocs
1 parent 4cca41e commit 2867931

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Node/ElementNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ public function __construct($namespace = null, $element = null)
3737
}
3838

3939
/**
40-
* @return null|string
40+
* @return string|null
4141
*/
4242
public function getNamespace()
4343
{
4444
return $this->namespace;
4545
}
4646

4747
/**
48-
* @return null|string
48+
* @return string|null
4949
*/
5050
public function getElement()
5151
{

Node/SelectorNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SelectorNode extends AbstractNode
2828

2929
/**
3030
* @param NodeInterface $tree
31-
* @param null|string $pseudoElement
31+
* @param string|null $pseudoElement
3232
*/
3333
public function __construct(NodeInterface $tree, $pseudoElement = null)
3434
{
@@ -45,7 +45,7 @@ public function getTree()
4545
}
4646

4747
/**
48-
* @return null|string
48+
* @return string|null
4949
*/
5050
public function getPseudoElement()
5151
{

Parser/TokenStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function getNextIdentifier()
142142
/**
143143
* Returns nex identifier or star delimiter token.
144144
*
145-
* @return null|string The identifier token value or null if star found
145+
* @return string|null The identifier token value or null if star found
146146
*
147147
* @throws SyntaxErrorException If next token is not an identifier or a star delimiter
148148
*/

0 commit comments

Comments
 (0)