From 0dfb1d54e8de1783742799eb73e904f977f2bd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 28 Nov 2025 15:48:04 +0100 Subject: [PATCH 1/2] Added `native_function_invocation` for `@compiler_optimized` functions --- src/lib/PhpCsFixer/Sets/Ibexa50RuleSet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/PhpCsFixer/Sets/Ibexa50RuleSet.php b/src/lib/PhpCsFixer/Sets/Ibexa50RuleSet.php index e56fe57..e365a64 100644 --- a/src/lib/PhpCsFixer/Sets/Ibexa50RuleSet.php +++ b/src/lib/PhpCsFixer/Sets/Ibexa50RuleSet.php @@ -28,6 +28,7 @@ public function getRules(): array 'property', ], ], + 'native_function_invocation' => true, 'native_type_declaration_casing' => true, 'new_with_parentheses' => true, 'no_trailing_comma_in_singleline' => [ From fe1679e50248f333a15e2b470ae83c81eac2e78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 28 Nov 2025 15:54:53 +0100 Subject: [PATCH 2/2] Added `native_function_invocation` for `@compiler_optimized` functions --- .../PhpCsFixer/Sets/expected_rules/5_0_rule_set/local_rules.php | 2 +- .../Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/local_rules.php b/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/local_rules.php index b254e30..0e12b94 100644 --- a/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/local_rules.php +++ b/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/local_rules.php @@ -84,7 +84,7 @@ 'scope' => 'namespaced', ], 'native_function_casing' => true, - 'native_function_invocation' => false, + 'native_function_invocation' => true, 'native_type_declaration_casing' => true, 'new_with_parentheses' => true, 'no_alias_functions' => true, diff --git a/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php b/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php index 3232db4..22f404b 100644 --- a/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php +++ b/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php @@ -100,6 +100,7 @@ 'scope' => 'namespaced', ], 'native_function_casing' => true, + 'native_function_invocation' => true, 'no_alias_functions' => true, 'no_blank_lines_after_phpdoc' => true, 'no_empty_comment' => true,