From 1c44661e1dc8e794409179689397f67a378855ac Mon Sep 17 00:00:00 2001 From: Sebastian De Deyne Date: Mon, 4 Jun 2018 17:36:13 +0200 Subject: [PATCH] Fix regression introduced in 1.1.0 --- src/ComponentFinder.php | 2 +- tests/NamespacesTest.php | 2 +- tests/RootNamespaceTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ComponentFinder.php b/src/ComponentFinder.php index 1564471..54ed499 100644 --- a/src/ComponentFinder.php +++ b/src/ComponentFinder.php @@ -37,7 +37,7 @@ public function find(string $identifier): string ); } - return "{$componentClass}::class"; + return $componentClass; } private function expandComponentClassPath(string $path): string diff --git a/tests/NamespacesTest.php b/tests/NamespacesTest.php index db1b4d3..b2636d7 100644 --- a/tests/NamespacesTest.php +++ b/tests/NamespacesTest.php @@ -20,7 +20,7 @@ protected function getEnvironmentSetUp($app) public function it_renders_a_component_from_a_path_with_an_explicit_namespace() { $this->assertEquals( - MyComponent::class.'::class', + MyComponent::class, $this->app->make(ComponentFinder::class)->find('stubs::myComponent') ); } diff --git a/tests/RootNamespaceTest.php b/tests/RootNamespaceTest.php index b1dfdd9..e210d10 100644 --- a/tests/RootNamespaceTest.php +++ b/tests/RootNamespaceTest.php @@ -20,7 +20,7 @@ protected function getEnvironmentSetUp($app) public function it_renders_a_component_from_a_path() { $this->assertEquals( - MyComponent::class.'::class', + MyComponent::class, $this->app->make(ComponentFinder::class)->find('myComponent') ); } @@ -29,7 +29,7 @@ public function it_renders_a_component_from_a_path() public function it_renders_a_component_from_a_nested_path() { $this->assertEquals( - NestedComponent::class.'::class', + NestedComponent::class, $this->app->make(ComponentFinder::class)->find('nested.nestedComponent') ); }