Skip to content

Commit

Permalink
Object type-hint, require PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 24, 2019
1 parent 6aabedb commit 004fe43
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- 7.4
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"license": "MIT",
"require": {
"php": ">=7.1",
"php": ">=7.2",
"brick/reflection": "^0.2.4",
"doctrine/annotations": "1.*"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Injector.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function invoke(callable $function, array $parameters = [])
*
* @throws UnresolvedValueException If a function parameter could not be resolved.
*/
public function instantiate(string $class, array $parameters = [])
public function instantiate(string $class, array $parameters = []) : object
{
$class = new \ReflectionClass($class);
$instance = $class->newInstanceWithoutConstructor();
Expand Down

0 comments on commit 004fe43

Please sign in to comment.