Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 9eb53e8

Browse files
committed
Merge branch 'hotfix/20'
Close #20
2 parents 5ba4654 + e492d77 commit 9eb53e8

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

src/ConfigAggregator.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@
1313
use Zend\Stdlib\ArrayUtils\MergeRemoveKey;
1414
use Zend\Stdlib\ArrayUtils\MergeReplaceKeyInterface;
1515

16+
use function array_key_exists;
17+
use function class_exists;
18+
use function date;
19+
use function file_exists;
20+
use function file_put_contents;
21+
use function get_class;
22+
use function gettype;
23+
use function is_array;
24+
use function is_callable;
25+
use function is_int;
26+
use function is_object;
27+
use function is_string;
28+
use function sprintf;
29+
use function var_export;
30+
1631
/**
1732
* Aggregate configuration generated by configuration providers.
1833
*/

src/InvalidConfigProcessorException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
use RuntimeException;
1111

12+
use function sprintf;
13+
1214
class InvalidConfigProcessorException extends RuntimeException
1315
{
1416

src/InvalidConfigProviderException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
use RuntimeException;
1212

13+
use function sprintf;
14+
1315
class InvalidConfigProviderException extends RuntimeException
1416
{
1517

test/ConfigAggregatorTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010

1111
use org\bovigo\vfs\vfsStream;
1212
use PHPUnit\Framework\TestCase;
13-
use StdClass;
13+
use stdClass;
1414
use Zend\ConfigAggregator\ConfigAggregator;
1515
use Zend\ConfigAggregator\InvalidConfigProcessorException;
1616
use Zend\ConfigAggregator\InvalidConfigProviderException;
1717
use ZendTest\ConfigAggregator\Resources\BarConfigProvider;
1818
use ZendTest\ConfigAggregator\Resources\FooConfigProvider;
1919
use ZendTest\ConfigAggregator\Resources\FooPostProcessor;
2020

21+
use function file_exists;
22+
use function var_export;
23+
2124
class ConfigAggregatorTest extends TestCase
2225
{
2326
public function testConfigAggregatorRisesExceptionIfProviderClassDoesNotExist()
@@ -29,7 +32,7 @@ public function testConfigAggregatorRisesExceptionIfProviderClassDoesNotExist()
2932
public function testConfigAggregatorRisesExceptionIfProviderIsNotCallable()
3033
{
3134
$this->expectException(InvalidConfigProviderException::class);
32-
new ConfigAggregator([StdClass::class]);
35+
new ConfigAggregator([stdClass::class]);
3336
}
3437

3538
public function testConfigAggregatorMergesConfigFromProviders()
@@ -106,7 +109,7 @@ public function testConfigAggregatorRisesExceptionIfProcessorClassDoesNotExist()
106109
public function testConfigAggregatorRisesExceptionIfProcessorIsNotCallable()
107110
{
108111
$this->expectException(InvalidConfigProcessorException::class);
109-
new ConfigAggregator([], null, [StdClass::class]);
112+
new ConfigAggregator([], null, [stdClass::class]);
110113
}
111114

112115
public function testProcessorCanBeClosure()

test/ZendConfigProviderTest.php

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

1111
use PHPUnit\Framework\TestCase;
1212
use Zend\ConfigAggregator\ZendConfigProvider;
13-
use Zend\Stdlib\ArrayUtils;
1413

1514
class ZendConfigProviderTest extends TestCase
1615
{

0 commit comments

Comments
 (0)