From 0c319ac8bf9a6acd88c97c666da5aeb69c17934e Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Fri, 29 Nov 2024 22:49:10 +0900 Subject: [PATCH] Remove unused assert and is_object function imports The assert and is_object function imports were removed from multiple files as they were not being utilized in the code. Cleaning up these imports helps reduce clutter and improve code readability. This change does not affect any functionality. --- src/di/MultiBinding/LazyProvider.php | 2 -- src/di/Name.php | 1 - tests/di/ArgumentsTest.php | 2 -- tests/di/GrapherTest.php | 1 - 4 files changed, 6 deletions(-) diff --git a/src/di/MultiBinding/LazyProvider.php b/src/di/MultiBinding/LazyProvider.php index 125b7847..3af84134 100644 --- a/src/di/MultiBinding/LazyProvider.php +++ b/src/di/MultiBinding/LazyProvider.php @@ -7,8 +7,6 @@ use Ray\Di\InjectorInterface; use Ray\Di\ProviderInterface; -use function assert; - /** * @template T of ProviderInterface */ diff --git a/src/di/Name.php b/src/di/Name.php index 9da92eae..335e76a7 100644 --- a/src/di/Name.php +++ b/src/di/Name.php @@ -12,7 +12,6 @@ use ReflectionMethod; use ReflectionParameter; -use function assert; use function class_exists; use function explode; use function get_class; diff --git a/tests/di/ArgumentsTest.php b/tests/di/ArgumentsTest.php index 7c0ea3a2..08f4b24c 100644 --- a/tests/di/ArgumentsTest.php +++ b/tests/di/ArgumentsTest.php @@ -8,8 +8,6 @@ use ReflectionMethod; use ReflectionParameter; -use function assert; -use function is_object; use function spl_object_hash; class ArgumentsTest extends TestCase diff --git a/tests/di/GrapherTest.php b/tests/di/GrapherTest.php index 051a9520..214b750c 100644 --- a/tests/di/GrapherTest.php +++ b/tests/di/GrapherTest.php @@ -9,7 +9,6 @@ use function assert; use function file_get_contents; -use function is_object; use function is_string; use function passthru; use function property_exists;