Skip to content

Commit b59c75e

Browse files
author
Garry Filakhtov
authored
Merge pull request #9 from filakhtov/PEN-1562
PEN-1562: Replace outdated, deprecated and abandoned dependencies
2 parents 8c66732 + 24289e1 commit b59c75e

10 files changed

Lines changed: 465 additions & 412 deletions

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.idea/
2-
vendor/
1+
/.phpunit.result.cache
2+
/vendor/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: php
22
php:
3-
- 7.1
3+
- 7.3
44

55
install:
66
- composer install

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
],
1717
"minimum-stability": "dev",
1818
"require": {
19-
"php": ">=5.6",
19+
"php": "^7.3",
2020
"pimple/pimple": "*",
2121
"ocramius/proxy-manager": "^1.0 || ^2.0",
22-
"container-interop/container-interop": "^1.1"
22+
"psr/container": "^1.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^6.0 || ^5.6"
25+
"phpunit/phpunit": "^5.6 || ^6.0 || ^7.0 || ^8.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

composer.lock

Lines changed: 446 additions & 393 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Adapter/ArrayContainerAdapter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
namespace Bigcommerce\Injector\Adapter;
33

44
use Bigcommerce\Injector\Adapter\Exception\ServiceNotFoundException;
5-
use Interop\Container\ContainerInterface;
6-
use Interop\Container\Exception\ContainerException;
7-
use Interop\Container\Exception\NotFoundException;
5+
use Psr\Container\ContainerExceptionInterface;
6+
use Psr\Container\ContainerInterface;
7+
use Psr\Container\NotFoundExceptionInterface;
88

99
/**
1010
* Adapt a simple array container (i.e Pimple) to ContainerInterop Interface
@@ -31,8 +31,8 @@ public function __construct($arrayContainer)
3131
*
3232
* @param string $id Identifier of the entry to look for.
3333
*
34-
* @throws NotFoundException No entry was found for this identifier.
35-
* @throws ContainerException Error while retrieving the entry.
34+
* @throws NotFoundExceptionInterface No entry was found for this identifier.
35+
* @throws ContainerExceptionInterface Error while retrieving the entry.
3636
*
3737
* @return mixed Entry.
3838
*/
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
namespace Bigcommerce\Injector\Adapter\Exception;
33

4-
use Interop\Container\Exception\NotFoundException;
4+
use Psr\Container\NotFoundExceptionInterface;
55

6-
class ServiceNotFoundException extends \Exception implements NotFoundException
6+
class ServiceNotFoundException extends \Exception implements NotFoundExceptionInterface
77
{
88

9-
}
9+
}

tests/InjectorServiceProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class InjectorServiceProviderTest extends TestCase
2323
/** @var BindingClosureFactory|ObjectProphecy */
2424
private $closureFactory;
2525

26-
public function setUp()
26+
public function setUp(): void
2727
{
2828
parent::setUp();
2929
$this->injector = $this->prophesize(Injector::class);

tests/InjectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use Bigcommerce\Injector\Exception\InjectorInvocationException;
66
use Bigcommerce\Injector\Injector;
77
use Bigcommerce\Injector\Reflection\ParameterInspector;
8-
use Interop\Container\ContainerInterface;
98
use PHPUnit\Framework\TestCase;
109
use Prophecy\Prophecy\ObjectProphecy;
10+
use Psr\Container\ContainerInterface;
1111
use Tests\Dummy\DummyDependency;
1212
use Tests\Dummy\DummyNoConstructor;
1313
use Tests\Dummy\DummyPrivateConstructor;
@@ -33,7 +33,7 @@ class InjectorTest extends TestCase
3333
*/
3434
private $inspector;
3535

36-
public function setUp()
36+
public function setUp(): void
3737
{
3838
parent::setUp();
3939
$this->container = $this->prophesize(ContainerInterface::class);

tests/Reflection/ParameterInspectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ParameterInspectorTest extends TestCase
1717
/** @var ObjectProphecy|ServiceCacheInterface */
1818
private $cache;
1919

20-
public function setUp()
20+
public function setUp(): void
2121
{
2222
parent::setUp();
2323
$this->cache = $this->prophesize(ArrayServiceCache::class);

tests/ServiceProvider/BindingClosureFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BindingClosureFactoryTest extends TestCase
2424
/** @var LazyLoadingValueHolderFactory|ObjectProphecy */
2525
private $proxyFactory;
2626

27-
public function setUp()
27+
public function setUp(): void
2828
{
2929
parent::setUp();
3030
$this->injector = $this->prophesize(Injector::class);

0 commit comments

Comments
 (0)