@@ 816-818 (lines=3) @@ | ||
813 | /** |
|
814 | * Better safe than sorry: http://php.net/in_array#106319 |
|
815 | */ |
|
816 | if (in_array(trim(strtolower($value)), $this->booleanLiterals['false'], true)) { |
|
817 | return $callback(false); |
|
818 | } |
|
819 | ||
820 | if (in_array(trim(strtolower($value)), $this->booleanLiterals['true'], true)) { |
|
821 | return $callback(true); |
|
@@ 820-822 (lines=3) @@ | ||
817 | return $callback(false); |
|
818 | } |
|
819 | ||
820 | if (in_array(trim(strtolower($value)), $this->booleanLiterals['true'], true)) { |
|
821 | return $callback(true); |
|
822 | } |
|
823 | ||
824 | throw new \UnexpectedValueException("Unrecognized boolean literal '${value}'"); |
|
825 | } |