From dcb244799105b0df5306000cc2cb4de8ec8bd780 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 4 Dec 2024 14:54:01 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/functions.php | 2 +- tests/HelpersTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions.php b/src/functions.php index 1cfb2d02..2fe36af5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -465,7 +465,7 @@ function laravel_or_fail($app, ?string $caller = null): Application if (\is_null($caller)) { $caller = transform(debug_backtrace()[1], function ($debug) { if (isset($debug['class']) && isset($debug['function'])) { - return sprintf('%s::%s', $debug['class'], $debug['function']); + return \sprintf('%s::%s', $debug['class'], $debug['function']); } return $debug['function']; diff --git a/tests/HelpersTest.php b/tests/HelpersTest.php index b7960268..55ca9e5f 100644 --- a/tests/HelpersTest.php +++ b/tests/HelpersTest.php @@ -27,13 +27,13 @@ public function it_can_compare_phpunit_version() $this->assertTrue(phpunit_version_compare(Version::id(), '==')); } - /** + /** * @test */ public function it_can_throw_application_not_available_application_when_app_is_not_laravel() { $this->expectException(ApplicationNotAvailableException::class); - $this->expectExceptionMessage(sprintf('Application is not available to run [%s]', __METHOD__)); + $this->expectExceptionMessage(\sprintf('Application is not available to run [%s]', __METHOD__)); laravel_or_fail(null); }