We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe26397 commit 2dab195Copy full SHA for 2dab195
1 file changed
src/Packer.php
@@ -119,16 +119,16 @@ public function pack($value)
119
if (\is_float($value)) {
120
return $this->packFloat($value);
121
}
122
- if ($value instanceof Ext) {
123
- return $this->packExt($value->type, $value->data);
124
- }
125
if ([] !== $this->transformers) {
126
foreach ($this->transformers as $transformer) {
127
if (null !== $packed = $transformer->pack($this, $value)) {
128
return $packed;
129
130
131
+ if ($value instanceof Ext) {
+ return $this->packExt($value->type, $value->data);
+ }
132
133
throw PackingFailedException::unsupportedType($value);
134
0 commit comments