diff --git a/lib/Diff/Renderer/Html/Array.php b/lib/Diff/Renderer/Html/Array.php
index 9eec4ae0..12782e09 100644
--- a/lib/Diff/Renderer/Html/Array.php
+++ b/lib/Diff/Renderer/Html/Array.php
@@ -242,7 +242,7 @@ protected function formatLines($lines)
* @param array $matches The string of spaces.
* @return string The HTML representation of the string.
*/
- function fixSpaces($matches)
+ protected function fixSpaces($matches)
{
$buffer = '';
$count = 0;