mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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
2ec5504dcb
commit
4cac66ba17
|
|
@ -969,7 +969,7 @@ class ConferenceOrBoothAttendee extends CommonObject
|
|||
$dir = dol_buildpath($reldir."core/modules/eventorganization/");
|
||||
|
||||
// Load file with numbering class (if found)
|
||||
$mybool |= @include_once $dir.$file;
|
||||
$mybool = ((bool) @include_once $dir.$file) || $mybool;
|
||||
}
|
||||
|
||||
if ($mybool === false) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user