minor #17471 fixed CS (fabpot)
This PR was merged into the 2.7 branch.
Discussion
----------
fixed CS
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
06b958a
fixed CS
This commit is contained in:
commit
15c37c2442
@ -224,7 +224,7 @@ class DebugClassLoader
|
||||
$i = count($tail) - 1;
|
||||
$j = count($real) - 1;
|
||||
|
||||
while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) {
|
||||
while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) {
|
||||
--$i;
|
||||
--$j;
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testDeprecatedSuper($class, $super, $type)
|
||||
{
|
||||
set_error_handler(function() { return false; });
|
||||
set_error_handler(function () { return false; });
|
||||
$e = error_reporting(0);
|
||||
trigger_error('', E_USER_DEPRECATED);
|
||||
|
||||
@ -205,7 +205,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testDeprecatedSuperInSameNamespace()
|
||||
{
|
||||
set_error_handler(function() { return false; });
|
||||
set_error_handler(function () { return false; });
|
||||
$e = error_reporting(0);
|
||||
trigger_error('', E_USER_NOTICE);
|
||||
|
||||
@ -231,7 +231,7 @@ class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase
|
||||
$this->markTestSkipped('PHP7 already prevents using reserved names.');
|
||||
}
|
||||
|
||||
set_error_handler(function() { return false; });
|
||||
set_error_handler(function () { return false; });
|
||||
$e = error_reporting(0);
|
||||
trigger_error('', E_USER_NOTICE);
|
||||
|
||||
|
@ -78,7 +78,6 @@ class DefinitionDecorator extends Definition
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
*/
|
||||
public function setFactoryClass($class)
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ class LockHandler
|
||||
}
|
||||
|
||||
// Silence error reporting
|
||||
set_error_handler(function() {});
|
||||
set_error_handler(function () {});
|
||||
|
||||
if (!$this->handle = fopen($this->file, 'r')) {
|
||||
if ($this->handle = fopen($this->file, 'x')) {
|
||||
|
@ -1102,7 +1102,7 @@ class OptionsResolver2Dot6Test extends \PHPUnit_Framework_TestCase
|
||||
$this->resolver->setNormalizer('catcher', function (Options $options) {
|
||||
try {
|
||||
return $options['thrower'];
|
||||
} catch(\Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
@ -1126,7 +1126,7 @@ class OptionsResolver2Dot6Test extends \PHPUnit_Framework_TestCase
|
||||
$this->resolver->setDefault('catcher', function (Options $options) {
|
||||
try {
|
||||
return $options['thrower'];
|
||||
} catch(\Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
@ -510,4 +510,3 @@ class StaticPropertyDummy
|
||||
{
|
||||
private static $property = 'value';
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,6 @@ interface ConstraintViolationInterface
|
||||
* that appear in the message template.
|
||||
*
|
||||
* @see getMessageTemplate()
|
||||
*
|
||||
* @deprecated since version 2.7, to be replaced by getParameters() in 3.0.
|
||||
*/
|
||||
public function getMessageParameters();
|
||||
|
@ -14,7 +14,7 @@ namespace Symfony\Component\VarDumper\Tests\Test;
|
||||
use Symfony\Component\VarDumper\Test\VarDumperTestCase;
|
||||
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
|
||||
|
||||
class VarDumperTestTraitTest extends VarDumperTestCase
|
||||
class VarDumperTestTraitRequire54 extends VarDumperTestCase
|
||||
{
|
||||
use VarDumperTestTrait;
|
||||
|
||||
|
@ -13,4 +13,3 @@
|
||||
if (PHP_VERSION_ID >= 50400) {
|
||||
require __DIR__.'/VarDumperTestTraitRequire54.php';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user