From 5e5ee8d260562e60309c4cdffc8783e4afd08897 Mon Sep 17 00:00:00 2001 From: Misha Kulakovsky Date: Wed, 20 Dec 2023 16:46:02 +0300 Subject: [PATCH 1/2] fix deprecation warnings --- src/DiffOp/Diff/Diff.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DiffOp/Diff/Diff.php b/src/DiffOp/Diff/Diff.php index e24e7f4..ed419ce 100644 --- a/src/DiffOp/Diff/Diff.php +++ b/src/DiffOp/Diff/Diff.php @@ -144,6 +144,8 @@ private function preSetElement( $index, DiffOp $value ): bool { * @since 0.1 * * @param string $serialization + * + * @return void */ #[\ReturnTypeWillChange] public function unserialize( $serialization ) { @@ -390,6 +392,8 @@ private function getNewOffset(): int { * @since 0.1 * * @param mixed $value + * + * @return void */ #[\ReturnTypeWillChange] public function append( $value ) { @@ -403,6 +407,8 @@ public function append( $value ) { * * @param int|string $index * @param mixed $value + * + * @return void */ #[\ReturnTypeWillChange] public function offsetSet( $index, $value ) { From 6ef19d886811465cce41bbdad203c843296c1aef Mon Sep 17 00:00:00 2001 From: Misha Kulakovsky Date: Thu, 21 Dec 2023 08:50:39 +0300 Subject: [PATCH 2/2] [stylecheck] remove whitespaces at eol --- src/DiffOp/Diff/Diff.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DiffOp/Diff/Diff.php b/src/DiffOp/Diff/Diff.php index ed419ce..e4b9dba 100644 --- a/src/DiffOp/Diff/Diff.php +++ b/src/DiffOp/Diff/Diff.php @@ -144,7 +144,7 @@ private function preSetElement( $index, DiffOp $value ): bool { * @since 0.1 * * @param string $serialization - * + * * @return void */ #[\ReturnTypeWillChange] @@ -392,7 +392,7 @@ private function getNewOffset(): int { * @since 0.1 * * @param mixed $value - * + * * @return void */ #[\ReturnTypeWillChange] @@ -407,7 +407,7 @@ public function append( $value ) { * * @param int|string $index * @param mixed $value - * + * * @return void */ #[\ReturnTypeWillChange]