Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Commit

Permalink
Drop return typehints for 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerkus committed Dec 20, 2018
1 parent 3378c43 commit 8d83c41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AbstractFactory/ReflectionBasedAbstractFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function canCreate(ContainerInterface $container, $requestedName)
return class_exists($requestedName) && $this->canCallConstructor($requestedName);
}

private function canCallConstructor(string $requestedName) : bool
private function canCallConstructor($requestedName)
{
$constructor = (new ReflectionClass($requestedName))->getConstructor();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testCanCreateReturnsFalseWhenConstructorIsPrivate()
);
}

public function testCanCreateReturnsTrueWhenClassHasNoConstructor() : void
public function testCanCreateReturnsTrueWhenClassHasNoConstructor()
{
self::assertTrue(
(new ReflectionBasedAbstractFactory())->canCreate(
Expand Down

0 comments on commit 8d83c41

Please sign in to comment.