Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4649ba9

Browse files
committed
Merge branch '2.3'
2 parents 8f6fac8 + b8d39c4 commit 4649ba9

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ do
1515
git checkout $BRANCH &> /dev/null &&
1616
git reset --hard &> /dev/null &&
1717
echo -n $BRANCH
18-
(for i in {1..10}; do php php-cs-fixer fix . ; done) | grep -i fixed | awk '
18+
(for i in {1..10}; do php php-cs-fixer fix --dry-run 2> /dev/null ; done) | grep -i seconds | awk '
1919
{
2020
total += $5;
2121
++count;

src/Fixer/Casing/MagicConstantCasingFixer.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,8 @@ private function getMagicConstants()
7474
T_METHOD_C => '__METHOD__',
7575
T_NS_C => '__NAMESPACE__',
7676
CT::T_CLASS_CONSTANT => 'class',
77+
T_TRAIT_C => '__TRAIT__',
7778
];
78-
79-
if (defined('T_TRAIT_C')) {
80-
$magicConstants[T_TRAIT_C] = '__TRAIT__';
81-
}
8279
}
8380

8481
return $magicConstants;

0 commit comments

Comments
 (0)