Skip to content

Commit a1c22cb

Browse files
committed
Statement: fixed explode()
1 parent 2db3144 commit a1c22cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DI/Definitions/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct($entity, array $arguments = [])
5151

5252
// normalize Class::method to [Class, method]
5353
if (is_string($entity) && Strings::contains($entity, '::') && !Strings::contains($entity, '?')) {
54-
$entity = explode('::', $entity);
54+
$entity = explode('::', $entity, 2);
5555
}
5656
if (is_string($entity) && substr($entity, 0, 1) === '@') { // normalize @service to Reference
5757
$entity = new Reference(substr($entity, 1));

0 commit comments

Comments
 (0)