From: Robin Gustafsson <robin@rgson.se>
Date: Fri, 31 Dec 2021 15:45:07 +0100
Subject: Load lazy-loaded classes from installed location

Forwarded: not-needed
---
 src/Carbon/MessageFormatter/MessageFormatterMapper.php | 4 ++--
 src/Carbon/PHPStan/Macro.php                           | 8 ++++----
 src/Carbon/Translator.php                              | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/Carbon/MessageFormatter/MessageFormatterMapper.php b/src/Carbon/MessageFormatter/MessageFormatterMapper.php
index a230b06..ed0cd4d 100644
--- a/src/Carbon/MessageFormatter/MessageFormatterMapper.php
+++ b/src/Carbon/MessageFormatter/MessageFormatterMapper.php
@@ -18,8 +18,8 @@ use Symfony\Component\Translation\Formatter\MessageFormatterInterface;
 $transMethod = new ReflectionMethod(MessageFormatterInterface::class, 'format');
 
 require $transMethod->getParameters()[0]->hasType()
-    ? __DIR__.'/../../../lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php'
-    : __DIR__.'/../../../lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php';
+    ? __DIR__.'/MessageFormatterMapperStrongType.php'
+    : __DIR__.'/MessageFormatterMapperWeakType.php';
 
 final class MessageFormatterMapper extends LazyMessageFormatter
 {
diff --git a/src/Carbon/PHPStan/Macro.php b/src/Carbon/PHPStan/Macro.php
index de3e51f..4b5ac1c 100644
--- a/src/Carbon/PHPStan/Macro.php
+++ b/src/Carbon/PHPStan/Macro.php
@@ -20,14 +20,14 @@ use ReflectionMethod;
 $method = new ReflectionMethod(BuiltinMethodReflection::class, 'getReflection');
 
 require $method->hasReturnType() && $method->getReturnType()->getName() === Adapter\ReflectionMethod::class
-    ? __DIR__.'/../../../lazy/Carbon/PHPStan/AbstractMacroStatic.php'
-    : __DIR__.'/../../../lazy/Carbon/PHPStan/AbstractMacroBuiltin.php';
+    ? __DIR__.'/AbstractMacroStatic.php'
+    : __DIR__.'/AbstractMacroBuiltin.php';
 
 $method = new ReflectionMethod(BuiltinMethodReflection::class, 'getFileName');
 
 require $method->hasReturnType()
-    ? __DIR__.'/../../../lazy/Carbon/PHPStan/MacroStrongType.php'
-    : __DIR__.'/../../../lazy/Carbon/PHPStan/MacroWeakType.php';
+    ? __DIR__.'/MacroStrongType.php'
+    : __DIR__.'/MacroWeakType.php';
 
 final class Macro extends LazyMacro
 {
diff --git a/src/Carbon/Translator.php b/src/Carbon/Translator.php
index 491c9e7..1861048 100644
--- a/src/Carbon/Translator.php
+++ b/src/Carbon/Translator.php
@@ -23,8 +23,8 @@ $transMethod = new ReflectionMethod(
 );
 
 require $transMethod->hasReturnType()
-    ? __DIR__.'/../../lazy/Carbon/TranslatorStrongType.php'
-    : __DIR__.'/../../lazy/Carbon/TranslatorWeakType.php';
+    ? __DIR__.'/TranslatorStrongType.php'
+    : __DIR__.'/TranslatorWeakType.php';
 
 class Translator extends LazyTranslator
 {
