Skip to content

Commit ba32046

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix minor phpdoc mismatches with the code(detected by phan) [Asset] Starting slash should indicate no basePath wanted [Security] Fix phpdoc logout listener Fix minor typo in the main README.md
2 parents e08f74f + f647c47 commit ba32046

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parser/Reader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function getOffset($string)
9797
/**
9898
* @param string $pattern
9999
*
100-
* @return bool
100+
* @return array|false
101101
*/
102102
public function findPattern($pattern)
103103
{

XPath/Extension/NodeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function setFlag($flag, $on)
7272
*/
7373
public function hasFlag($flag)
7474
{
75-
return $this->flags & $flag;
75+
return (bool) ($this->flags & $flag);
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)