Skip to content

Commit 8024df7

Browse files
committed
solve phpstan issues
1 parent 51d6002 commit 8024df7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/phpDocumentor/GraphViz/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function isValueInHtml()
116116
{
117117
$value = $this->getValue();
118118

119-
return (bool)(isset($value[0]) && ($value[0] == '<'));
119+
return (isset($value[0]) && ($value[0] == '<'));
120120
}
121121

122122
/**

src/phpDocumentor/GraphViz/Edge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Edge
2828
/** @var \phpDocumentor\GraphViz\Node Node where to to link */
2929
protected $to = null;
3030

31-
/** @var \phpDocumentor\GraphViz\Attribute List of attributes for this edge */
31+
/** @var \phpDocumentor\GraphViz\Attribute[] List of attributes for this edge */
3232
protected $attributes = array();
3333

3434
/**
@@ -93,7 +93,7 @@ public function getTo()
9393
* setX or getX.
9494
* @param mixed[] $arguments Arguments for the setter, only 1 is expected: value
9595
*
96-
* @return \phpDocumentor\GraphViz\Attribute[]|\phpDocumentor\GraphViz\Edge|null
96+
* @return \phpDocumentor\GraphViz\Attribute|\phpDocumentor\GraphViz\Edge|null
9797
*/
9898
function __call($name, $arguments)
9999
{

src/phpDocumentor/GraphViz/Graph.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function isStrict()
187187
* @param string $name Name of the method including get/set
188188
* @param mixed[] $arguments The arguments, should be 1: the value
189189
*
190-
* @return \phpDocumentor\GraphViz\Attribute[]|\phpDocumentor\GraphViz\Graph|null
190+
* @return \phpDocumentor\GraphViz\Attribute|\phpDocumentor\GraphViz\Graph|null
191191
*/
192192
function __call($name, $arguments)
193193
{
@@ -272,7 +272,7 @@ public function setNode(Node $node)
272272
*
273273
* @param string $name Name of the node to find.
274274
*
275-
* @return \phpDocumentor\GraphViz\Node
275+
* @return \phpDocumentor\GraphViz\Node|null
276276
*/
277277
public function findNode($name)
278278
{
@@ -314,7 +314,7 @@ function __set($name, $value)
314314
*
315315
* @see \phpDocumentor\GraphViz\Graph::setNode()
316316
*
317-
* @return \phpDocumentor\GraphViz\Node
317+
* @return \phpDocumentor\GraphViz\Node|null
318318
*/
319319
function __get($name)
320320
{

src/phpDocumentor/GraphViz/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getName()
9898
* @param string $name Method name; either getX or setX is expected.
9999
* @param mixed[] $arguments List of arguments; only 1 is expected for setX.
100100
*
101-
* @return \phpDocumentor\GraphViz\Attribute[]|\phpDocumentor\GraphViz\Node|null
101+
* @return \phpDocumentor\GraphViz\Attribute|\phpDocumentor\GraphViz\Node|null
102102
*/
103103
function __call($name, $arguments)
104104
{

0 commit comments

Comments
 (0)