civicrm/cv

Notice-messages in v0.3.6

Opened this issue · 5 comments

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

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

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

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

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

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.