Skip to content

Commit 630f313

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: Fix tests in HHVM CS: Pre incrementation/decrementation should be used if possible Conflicts: src/Symfony/Bundle/TwigBundle/Command/LintCommand.php src/Symfony/Component/Console/Helper/TableHelper.php src/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php src/Symfony/Component/HttpKernel/HttpCache/EsiResponseCacheStrategy.php src/Symfony/Component/Security/Acl/Dbal/AclProvider.php src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php
2 parents bf67067 + 94ae514 commit 630f313

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Command/ContainerDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function validateInput(InputInterface $input)
141141
$optionsCount = 0;
142142
foreach ($options as $option) {
143143
if ($input->getOption($option)) {
144-
$optionsCount++;
144+
++$optionsCount;
145145
}
146146
}
147147

Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function fileExcerpt($file, $line)
135135
$content = preg_split('#<br />#', $code);
136136

137137
$lines = array();
138-
for ($i = max($line - 3, 1), $max = min($line + 3, count($content)); $i <= $max; $i++) {
138+
for ($i = max($line - 3, 1), $max = min($line + 3, count($content)); $i <= $max; ++$i) {
139139
$lines[] = '<li'.($i == $line ? ' class="selected"' : '').'><code>'.self::fixCodeMarkup($content[$i - 1]).'</code></li>';
140140
}
141141

Translation/PhpExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected function parseTokens($tokens, MessageCatalogue $catalog)
148148
{
149149
$tokenIterator = new \ArrayIterator($tokens);
150150

151-
for ($key = 0; $key < $tokenIterator->count(); $key++) {
151+
for ($key = 0; $key < $tokenIterator->count(); ++$key) {
152152
foreach ($this->sequences as $sequence) {
153153
$message = '';
154154
$tokenIterator->seek($key);

0 commit comments

Comments
 (0)