Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit a58a318

Browse files
committed
Merge branch 'serializer' of https://github.com/marc-mabe/zf2 into hotfix/serializer-pickle-exception
9 parents 56aa212 + deb83ca + 8c6325a + 06fbdf6 + ec2d4d3 + e3c3d67 + 074157d + 25f5da9 + cee1ae9 commit a58a318

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Adapter/PythonPickle.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@ public function setOption($name, $value)
174174
{
175175
switch ($name) {
176176
case 'protocol':
177-
$value = $this->_checkProtocolNumber($value);
178-
if ($value === false) {
179-
throw new InvalidArgumentException("Invalid or unknown protocol version '{$number}'");
177+
$number = $this->_checkProtocolNumber($value);
178+
if ($number === false) {
179+
throw new InvalidArgumentException("Invalid or unknown protocol version '{$value}'");
180180
}
181+
$value = $number;
181182
break;
182183
}
183184

0 commit comments

Comments
 (0)