mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
Remove is_int since typehint exists
This commit is contained in:
committed by
GitHub
parent
3687ccd1b4
commit
d8a4113a74
@@ -51,7 +51,7 @@ final class OptimizerNodeVisitor implements NodeVisitorInterface
|
|||||||
*/
|
*/
|
||||||
public function __construct(int $optimizers = -1)
|
public function __construct(int $optimizers = -1)
|
||||||
{
|
{
|
||||||
if (!\is_int($optimizers) || $optimizers > (self::OPTIMIZE_FOR | self::OPTIMIZE_RAW_FILTER)) {
|
if ($optimizers > (self::OPTIMIZE_FOR | self::OPTIMIZE_RAW_FILTER)) {
|
||||||
throw new \InvalidArgumentException(sprintf('Optimizer mode "%s" is not valid.', $optimizers));
|
throw new \InvalidArgumentException(sprintf('Optimizer mode "%s" is not valid.', $optimizers));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user