Skip to content

Commit 00be077

Browse files
committed
fix: syntax error on php 7.4
1 parent 65c727c commit 00be077

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [7.3, 7.4, '8.0'] # 7.2,
19+
php: [7.3, 7.4, '8.0', 8.1] # 7.2,
2020
# os: [ubuntu-latest] # , macOS-latest, windows-latest,
2121
coverage: ['none']
2222
include:

src/CliApp.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ protected function initCommandFlags(string $command, $handler): FlagsParser
302302
*
303303
* @return mixed
304304
*/
305-
public function runHandler(mixed $handler, FlagsParser $cFlags): mixed
305+
public function runHandler($handler, FlagsParser $cFlags): mixed
306306
{
307307
// function name
308308
if (is_string($handler) && function_exists($handler)) {

0 commit comments

Comments
 (0)