Skip to content

Commit 19efe31

Browse files
authored
Added changelog for 2.3.1 (#102)
* Added changelog for 2.3.1 * StyleCI fixes * StyleCI fixes
1 parent 1091bb0 commit 19efe31

27 files changed

+137
-129
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.3.1
4+
5+
- Added conflicts with PHPUnit < 6.0
6+
37
## v2.3.0
48

59
- Testing on Symfony 4 and make sure test passes

Loader/ExtensionConfigurationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class ExtensionConfigurationBuilder
99
{
1010
private $extension;
11-
private $sources = array();
11+
private $sources = [];
1212
private $loaderFactory;
1313

1414
public function __construct(LoaderFactoryInterface $loaderFactory)

Loader/LoaderFactoryInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ interface LoaderFactoryInterface
99
{
1010
/**
1111
* @param ContainerBuilder $container
12-
* @param $source
12+
* @param $source
13+
*
1314
* @return LoaderInterface
1415
*/
1516
public function createLoaderForSource(ContainerBuilder $container, $source);

PhpUnit/AbstractCompilerPassTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ abstract class AbstractCompilerPassTestCase extends AbstractContainerBuilderTest
88
{
99
/**
1010
* Register the compiler pass under test, just like you would do inside a bundle's load()
11-
* method:
11+
* method.
1212
*
1313
* $container->addCompilerPass(new MyCompilerPass());
1414
*/
1515
abstract protected function registerCompilerPass(ContainerBuilder $container);
1616

1717
/**
18-
* This test will run the compile method
18+
* This test will run the compile method.
1919
*
2020
* @test
2121
*/

PhpUnit/AbstractContainerBuilderTestCase.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ abstract class AbstractContainerBuilderTestCase extends TestCase
1717
protected function setUp()
1818
{
1919
$this->container = new ContainerBuilder();
20-
$this->container->getCompilerPassConfig()->setOptimizationPasses(array());
21-
$this->container->getCompilerPassConfig()->setRemovingPasses(array());
20+
$this->container->getCompilerPassConfig()->setOptimizationPasses([]);
21+
$this->container->getCompilerPassConfig()->setRemovingPasses([]);
2222
}
2323

2424
protected function tearDown()
@@ -31,6 +31,7 @@ protected function tearDown()
3131
*
3232
* @param $serviceId
3333
* @param $class
34+
*
3435
* @return Definition
3536
*/
3637
protected function registerService($serviceId, $class)
@@ -101,7 +102,6 @@ protected function assertContainerBuilderNotHasService($serviceId)
101102
);
102103
}
103104

104-
105105
/**
106106
* Assert that the ContainerBuilder for this test has a synthetic service with the given id.
107107
*
@@ -171,15 +171,15 @@ protected function assertContainerBuilderHasServiceDefinitionWithArgument(
171171
* Assert that the ContainerBuilder for this test has a service definition with the given id, which has a method
172172
* call to the given method with the given arguments.
173173
*
174-
* @param string $serviceId
175-
* @param string $method
176-
* @param array $arguments
174+
* @param string $serviceId
175+
* @param string $method
176+
* @param array $arguments
177177
* @param int|null $index
178178
*/
179179
protected function assertContainerBuilderHasServiceDefinitionWithMethodCall(
180180
$serviceId,
181181
$method,
182-
array $arguments = array(),
182+
array $arguments = [],
183183
$index = null
184184
) {
185185
$definition = $this->container->findDefinition($serviceId);
@@ -198,7 +198,7 @@ protected function assertContainerBuilderHasServiceDefinitionWithMethodCall(
198198
protected function assertContainerBuilderHasServiceDefinitionWithTag(
199199
$serviceId,
200200
$tag,
201-
array $attributes = array()
201+
array $attributes = []
202202
) {
203203
$definition = $this->container->findDefinition($serviceId);
204204

PhpUnit/AbstractExtensionTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ abstract protected function getContainerExtensions();
2222
*/
2323
protected function getMinimalConfiguration()
2424
{
25-
return array();
25+
return [];
2626
}
2727

2828
/**
2929
* Setup for each test: creates a new ContainerBuilder,
3030
* registers the ValidateServiceDefinitionsPass which will validate all defined services when
31-
* the container is compiled
31+
* the container is compiled.
3232
*
3333
* @see AbstractExtensionTestCase::tearDown()
3434
*/
@@ -47,9 +47,9 @@ protected function setUp()
4747
*
4848
* @param array $configurationValues
4949
*/
50-
protected function load(array $configurationValues = array())
50+
protected function load(array $configurationValues = [])
5151
{
52-
$configs = array($this->getMinimalConfiguration(), $configurationValues);
52+
$configs = [$this->getMinimalConfiguration(), $configurationValues];
5353

5454
foreach ($this->container->getExtensions() as $extension) {
5555
if ($extension instanceof PrependExtensionInterface) {

PhpUnit/ContainerBuilderHasAliasConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($aliasId, $expectedServiceId = null)
2929

3030
public function toString()
3131
{
32-
return 'has an alias "' . $this->aliasId . '" for service "' . $this->expectedServiceId . '"';
32+
return 'has an alias "'.$this->aliasId.'" for service "'.$this->expectedServiceId.'"';
3333
}
3434

3535
public function evaluate($other, $description = '', $returnResult = false)

PhpUnit/DefinitionHasArgumentConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
class DefinitionHasArgumentConstraint extends Constraint
1111
{
12-
1312
/**
1413
* @var int|string
1514
*/

PhpUnit/DefinitionHasMethodCallConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DefinitionHasMethodCallConstraint extends Constraint
1212
private $arguments;
1313
private $index;
1414

15-
public function __construct($methodName, array $arguments = array(), $index = null)
15+
public function __construct($methodName, array $arguments = [], $index = null)
1616
{
1717
if ($index !== null && !is_int($index)) {
1818
throw new \InvalidArgumentException(sprintf('Expected value of integer type for method call index, "%s" given.', is_object($index) ? get_class($index) : gettype($index)));

PhpUnit/DefinitionHasTagConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DefinitionHasTagConstraint extends Constraint
1111
private $name;
1212
private $attributes;
1313

14-
public function __construct($name, array $attributes = array())
14+
public function __construct($name, array $attributes = [])
1515
{
1616
parent::__construct();
1717
$this->name = $name;

0 commit comments

Comments
 (0)