If ternary arithmetic is used here, if true, an error will be returned.
笑的承诺-雷
笑的承诺-雷 2018-07-28 10:38:21
0
1
1186

    $conf ='app_debug';
            $isExist= Config::has($conf);
              $isExist=  $isExist ? (Config::get($conf)) : ($conf." The configuration item does not exist");
return ($isExist);----If $conf is true, an error will be reported

dump($isExist);------Correct

笑的承诺-雷
笑的承诺-雷

reply all(1)
李喜欢

Cannot return Boolean value

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template