Skip to content

Commit

Permalink
fix: remove check for PHP < 7 since support was dropped
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Lockett <[email protected]>
  • Loading branch information
Gary Lockett committed Aug 3, 2021
1 parent 9a6a6ed commit 318dc97
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
use function trigger_error;

use const E_USER_DEPRECATED;
use const PHP_MAJOR_VERSION;

/**
* Service Manager.
Expand Down Expand Up @@ -549,13 +548,6 @@ private function getFactory($name)
if ($lazyLoaded) {
$this->factories[$name] = $factory;
}
// PHP 5.6 fails on 'class::method' callables unless we explode them:
if (
PHP_MAJOR_VERSION < 7
&& is_string($factory) && strpos($factory, '::') !== false
) {
$factory = explode('::', $factory);
}
return $factory;
}

Expand Down

0 comments on commit 318dc97

Please sign in to comment.