Browse Source

define arguments parsed data type

nex-php
yggverse 7 months ago
parent
commit
03a41dd7f3
  1. 4
      src/nex.php

4
src/nex.php

@ -34,7 +34,7 @@ foreach ((array) $argv as $item)
case 'path': case 'path':
$path = rtrim( $path = rtrim(
$argument['value'], (string) $argument['value'],
DIRECTORY_SEPARATOR DIRECTORY_SEPARATOR
) . DIRECTORY_SEPARATOR; ) . DIRECTORY_SEPARATOR;
@ -66,7 +66,7 @@ foreach ((array) $argv as $item)
case 'fail': case 'fail':
$fail = rtrim( $fail = rtrim(
$argument['value'], (string) $argument['value'],
DIRECTORY_SEPARATOR DIRECTORY_SEPARATOR
) . DIRECTORY_SEPARATOR; ) . DIRECTORY_SEPARATOR;

Loading…
Cancel
Save