Fix $mybool |=... which is binary op, not boolean op
# Fix $mybool |=... which is binary op, not boolean op This fixes PhanTypeInvalidLeftOperandOfBitwiseOp. Replace $var |= ... with $var = ... || $var . Add cast before ... when needed (@include does not always return bool). |= always evaluates expression, there for || $var, not $var ||
This commit is contained in:
parent
474c85825f
commit
c9d897ee35
1 changed files with 1 additions and 1 deletions
|
|
@ -878,7 +878,7 @@ class Workstation extends CommonObject
|
|||
|
||||
// Load file with numbering class (if found)
|
||||
if (file_exists($dir.$file)) {
|
||||
$mybool |= @include_once $dir.$file;
|
||||
$mybool = ((bool) @include_once $dir.$file) || $mybool;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue