From 49b185d98cc0ed0cb438db03af69e16845516fd3 Mon Sep 17 00:00:00 2001 From: Dorian Savina Date: Thu, 8 Sep 2022 11:32:40 +0200 Subject: [PATCH 1/2] Remove superfluous trailing line in trait usage generated code Signed-off-by: Dorian Savina --- src/Generator/TraitUsageGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/TraitUsageGenerator.php b/src/Generator/TraitUsageGenerator.php index eb87a56a..d2d50b5b 100644 --- a/src/Generator/TraitUsageGenerator.php +++ b/src/Generator/TraitUsageGenerator.php @@ -437,6 +437,6 @@ public function generate() } } - return $output . self::LINE_FEED . $indent . '}' . self::LINE_FEED . self::LINE_FEED; + return $output . $indent . '}' . self::LINE_FEED . self::LINE_FEED; } } From a8164d71c6b3ee84b07d26d231199e5200eae585 Mon Sep 17 00:00:00 2001 From: Dorian Savina Date: Thu, 8 Sep 2022 14:41:23 +0200 Subject: [PATCH 2/2] Update trait generation test Signed-off-by: Dorian Savina --- test/Generator/ClassGeneratorTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/test/Generator/ClassGeneratorTest.php b/test/Generator/ClassGeneratorTest.php index e56f610c..689ad6a7 100644 --- a/test/Generator/ClassGeneratorTest.php +++ b/test/Generator/ClassGeneratorTest.php @@ -1167,7 +1167,6 @@ class myClass hisTrait::foo as public test; myTrait::bar insteadof hisTrait; myTrait::bar insteadof thatTrait; - } }