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

Commit 36d8164

Browse files
committed
Remove PHP < 7 fix
1 parent 53ae109 commit 36d8164

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ServiceManager.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,12 +684,7 @@ private function getFactory($name)
684684
if ($lazyLoaded) {
685685
$this->factories[$name] = $factory;
686686
}
687-
// PHP 5.6 fails on 'class::method' callables unless we explode them:
688-
if (PHP_MAJOR_VERSION < 7
689-
&& is_string($factory) && strpos($factory, '::') !== false
690-
) {
691-
$factory = explode('::', $factory);
692-
}
687+
693688
return $factory;
694689
}
695690

0 commit comments

Comments
 (0)