Skip to content

Commit f647c47

Browse files
TysonAndrefabpot
authored andcommitted
Fix minor phpdoc mismatches with the code(detected by phan)
1 parent b4d0d53 commit f647c47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parser/Reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getOffset($string)
9595
/**
9696
* @param string $pattern
9797
*
98-
* @return bool
98+
* @return array|false
9999
*/
100100
public function findPattern($pattern)
101101
{

XPath/Extension/NodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function setFlag($flag, $on)
7070
*/
7171
public function hasFlag($flag)
7272
{
73-
return $this->flags & $flag;
73+
return (bool) ($this->flags & $flag);
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)