Skip to content

Commit

Permalink
Merge branch '2.3' into 2.6
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fabpot committed May 15, 2015
2 parents 0d82153 + e4ca50e commit 92f809c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion IpUtils.php
Expand Up @@ -110,7 +110,7 @@ public static function checkIp6($requestIp, $ip)
$bytesAddr = unpack('n*', inet_pton($address));
$bytesTest = unpack('n*', inet_pton($requestIp));

for ($i = 1, $ceil = ceil($netmask / 16); $i <= $ceil; $i++) {
for ($i = 1, $ceil = ceil($netmask / 16); $i <= $ceil; ++$i) {
$left = $netmask - 16 * ($i - 1);
$left = ($left <= 16) ? $left : 16;
$mask = ~(0xffff >> $left) & 0xffff;
Expand Down
2 changes: 1 addition & 1 deletion ParameterBag.php
Expand Up @@ -113,7 +113,7 @@ public function get($path, $default = null, $deep = false)

$value = $this->parameters[$root];
$currentKey = null;
for ($i = $pos, $c = strlen($path); $i < $c; $i++) {
for ($i = $pos, $c = strlen($path); $i < $c; ++$i) {
$char = $path[$i];

if ('[' === $char) {
Expand Down
2 changes: 1 addition & 1 deletion Request.php
Expand Up @@ -1591,7 +1591,7 @@ public function getLanguages()
$lang = $codes[1];
}
} else {
for ($i = 0, $max = count($codes); $i < $max; $i++) {
for ($i = 0, $max = count($codes); $i < $max; ++$i) {
if ($i === 0) {
$lang = strtolower($codes[0]);
} else {
Expand Down
2 changes: 1 addition & 1 deletion Tests/HeaderBagTest.php
Expand Up @@ -196,7 +196,7 @@ public function testGetIterator()

$i = 0;
foreach ($headerBag as $key => $val) {
$i++;
++$i;
$this->assertEquals(array($headers[$key]), $val);
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParameterBagTest.php
Expand Up @@ -233,7 +233,7 @@ public function testGetIterator()

$i = 0;
foreach ($bag as $key => $val) {
$i++;
++$i;
$this->assertEquals($parameters[$key], $val);
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Session/Attribute/AttributeBagTest.php
Expand Up @@ -177,7 +177,7 @@ public function testGetIterator()
$i = 0;
foreach ($this->bag as $key => $val) {
$this->assertEquals($this->array[$key], $val);
$i++;
++$i;
}

$this->assertEquals(count($this->array), $i);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Session/Flash/FlashBagTest.php
Expand Up @@ -145,7 +145,7 @@ public function testGetIterator()
$i = 0;
foreach ($this->bag as $key => $val) {
$this->assertEquals(array($flashes[$key]), $val);
$i++;
++$i;
}

$this->assertEquals(count($flashes), $i);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Session/SessionTest.php
Expand Up @@ -203,7 +203,7 @@ public function testGetIterator()
$i = 0;
foreach ($this->session as $key => $val) {
$this->assertEquals($attributes[$key], $val);
$i++;
++$i;
}

$this->assertEquals(count($attributes), $i);
Expand Down

0 comments on commit 92f809c

Please sign in to comment.