Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed Nov 30, 2023
1 parent 378ed80 commit e56c4a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ jobs:
strategy:
matrix:
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'
- php: '8.0'
- php: '8.1'
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"source": "https://github.com/miladrahimi/phpcontainer/issues"
},
"require": {
"php": ">=7.4",
"php": ">=7.1",
"psr/container": "^2.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Container implements ContainerInterface
*
* @var Transient[]|Singleton[]
*/
private array $repository = [];
private $repository = [];

/**
* Empty the container
Expand Down
2 changes: 2 additions & 0 deletions tests/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ public function test_prototype_callable_binding_with_no_parameter()

$t1 = $this->container->get('time');

for ($i = 0; $i < 1000; $i++) sleep(0);

$t2 = $this->container->get('time');

$this->assertNotEquals($t1, $t2);
Expand Down

0 comments on commit e56c4a4

Please sign in to comment.