Skip to content

Commit cedad93

Browse files
committed
Replace use of short array syntax for compatibility
PHP 5.3 is already end of life, but this is a simple enough tweak to keep the library useable when running under 5.3.
1 parent e048a03 commit cedad93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HookFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,17 @@ public function generateHook($type, $programPath, $programName = null)
109109
// Use the program path if an alias/name is not given
110110
$programName = $programName ?: $programPath;
111111

112-
return str_replace([
112+
return str_replace(array(
113113
'%%function_name%%',
114114
'%%program_name%%',
115115
'%%program_path%%',
116116
'%%completion_command%%',
117-
], [
117+
), array(
118118
$this->generateFunctionName($programPath, $programName),
119119
$programName,
120120
$programPath,
121121
"$programPath _completion"
122-
],
122+
),
123123
$this->stripComments(self::$hooks[$type])
124124
);
125125
}

0 commit comments

Comments
 (0)