Issue Bug Closed

#55923intval() to (int) conversion regressions

Michiel Roos 02/12/14, 14:08 updated 10/23/17, 21:42

Description

Another set of errors after #54265:

intval around ternary expression was replaced with a cast, omitting the braces around the ternary expression.

inval($this->mconf['minItems'] ? $this->mconf['minItems'] : $this->conf['minItems']);

Was replaced with:
(int)$this->mconf['minItems'] ? $this->mconf['minItems'] : $this->conf['minItems'];

Instead of:
(int)($this->mconf['minItems'] ? $this->mconf['minItems'] : $this->conf['minItems']);

Reviews 1