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

Commit 8d83c41

Browse files
committed
Drop return typehints for 5.6
1 parent 3378c43 commit 8d83c41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AbstractFactory/ReflectionBasedAbstractFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function canCreate(ContainerInterface $container, $requestedName)
137137
return class_exists($requestedName) && $this->canCallConstructor($requestedName);
138138
}
139139

140-
private function canCallConstructor(string $requestedName) : bool
140+
private function canCallConstructor($requestedName)
141141
{
142142
$constructor = (new ReflectionClass($requestedName))->getConstructor();
143143

test/AbstractFactory/ReflectionBasedAbstractFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCanCreateReturnsFalseWhenConstructorIsPrivate()
5151
);
5252
}
5353

54-
public function testCanCreateReturnsTrueWhenClassHasNoConstructor() : void
54+
public function testCanCreateReturnsTrueWhenClassHasNoConstructor()
5555
{
5656
self::assertTrue(
5757
(new ReflectionBasedAbstractFactory())->canCreate(

0 commit comments

Comments
 (0)