From e166b70eb5bb5f520dbd78735febc750e8c87c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Tue, 8 Feb 2022 10:39:31 +0100 Subject: [PATCH] Add compiled function --- src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php b/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php index 95e3e0c60e1..f719968e5f1 100644 --- a/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php +++ b/src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php @@ -380,17 +380,22 @@ private function getAllCompilerOptimizedFunctionsNormalized(): array 'is_object', 'is_real', 'is_resource', + 'is_scalar', 'is_string', 'ord', + 'sizeof', 'strlen', 'strval', // @see https://github.com/php/php-src/blob/php-7.2.6/ext/opcache/Optimizer/pass1_5.c + // @see https://github.com/php/php-src/blob/PHP-8.1.2/Zend/Optimizer/block_pass.c + // @see https://github.com/php/php-src/blob/php-8.1.3/Zend/Optimizer/zend_optimizer.c 'constant', 'define', 'dirname', 'extension_loaded', 'function_exists', 'is_callable', + 'ini_get', ]); }