Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule native_type_declaration_casingΒΆ

Native type declarations should be used in the correct case.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php
 class Bar {
-    public function Foo(CALLABLE $bar): INT
+    public function Foo(callable $bar): int
     {
         return 1;
     }
 }

Example #2ΒΆ

--- Original
+++ New
 <?php
 class Foo
 {
-    const INT BAR = 1;
+    const int BAR = 1;
 }

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\Casing\NativeTypeDeclarationCasingFixer