Skip to content

Commit c964e24

Browse files
committed
Suppress psalm error
1 parent 57c39b9 commit c964e24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Builder/Encoder/RecursiveEncode.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use function get_object_vars;
1212
use function is_array;
1313

14+
/** @internal */
1415
trait RecursiveEncode
1516
{
1617
/** @param WeakReference<Encoder> $encoder */
@@ -46,6 +47,11 @@ private function recursiveEncode(mixed $value): mixed
4647
return $value;
4748
}
4849

50+
/**
51+
* The instances of the classes using this trait are created and
52+
* referenced in the BuilderEncoder class only.
53+
* @psalm-suppress PossiblyNullReference
54+
*/
4955
return $this->encoder->get()->encodeIfSupported($value);
5056
}
5157
}

0 commit comments

Comments
 (0)