Skip to content

Commit ecc8b95

Browse files
committed
Fix incorrect argument for InvalidArgumentException
1 parent d93024b commit ecc8b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/PhpFilesAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected function doSave(array $values, $lifetime)
109109
$value = serialize($value);
110110
}
111111
} elseif (!is_scalar($value)) {
112-
throw new InvalidArgumentException(sprintf('Value of type "%s" is not serializable', $key, gettype($value)));
112+
throw new InvalidArgumentException(sprintf('Value of type "%s" is not serializable', gettype($value)));
113113
}
114114

115115
$data[1] = $value;

0 commit comments

Comments
 (0)