Merge branch '3.12' into 3

This commit is contained in:
Steve Boyd 2023-05-31 11:22:51 +12:00
commit 39a37d9c41

View File

@ -105,6 +105,9 @@ abstract class SearchVariant
$ref = new ReflectionClass($variantclass);
if ($ref->isInstantiable()) {
$variant = singleton($variantclass);
// reassign actual class since Injector could be involved when creating the singleton
$variantclass = get_class($variant);
if ($variant->appliesToEnvironment()) {
$concrete[$variantclass] = $variant;
}