civicrm / cv

CiviCRM CLI Utility
27 stars 30 forks source link

Notice-messages in v0.3.6 #87

Open thoni56 opened 3 years ago

thoni56 commented 3 years ago

Not a big problem, but thought I'd report it anyhow:

# cv --version
cv version v0.3.6
# cv path -x.
PHP Notice:  Undefined offset: 1 in phar:///usr/local/bin/cv/src/Command/PathCommand.php on line 74

Notice: Undefined offset: 1 in phar:///usr/local/bin/cv/src/Command/PathCommand.php on line 74
/var/www/events/media/civicrm/custom_ext
#
aydun commented 1 year ago

Can't reproduce this now. Can this be closed?

thoni56 commented 1 year ago

With PHP 8.0.27, cv 0.3.30 on Ubuntu 22.04.1 I still (now) get

PHP Warning:  Undefined array key 1 in phar:///usr/local/bin/cv/src/Command/PathCommand.php on line 74
Warning: Undefined array key 1 in phar:///usr/local/bin/cv/src/Command/PathCommand.php on line 74
demeritcowboy commented 1 year ago

@thoni56 what are you trying to do with that command? It's not valid syntax to have a . after the x and nothing else.

demeritcowboy commented 1 year ago

Oh sorry I see the help says "Use "." for the default extension dir.".

thoni56 commented 1 year ago

Actually, I don't remember ;-)

This was when I tried to understand how to use cv. This time I only copied the command to see if I could reproduce it and I could.