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