Skip to content

Commit

Permalink
Add compiled function
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Feb 8, 2022
1 parent 0f56327 commit e166b70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php
Expand Up @@ -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',
]);
}

Expand Down

0 comments on commit e166b70

Please sign in to comment.