php-coupling-detector icon indicating copy to clipboard operation
php-coupling-detector copied to clipboard

Can't define an only rule that defines nothing (except itself)

Open jjanvier opened this issue 4 years ago • 0 comments

the conf

$builder->only([])->in('Jjanvier\C2P\Common'),

the error

jjanvier:lambdas$ vendor/bin/php-coupling-detector detect --config-file=.phpcd                                                        

In RuleBuilder.php line 56:
                                                                     
  Can not create a rule without any requirement defined previously.  

detect [-c|--config-file CONFIG-FILE] [-f|--format FORMAT] [--] [<path>]

jjanvier avatar Apr 10 '20 05:04 jjanvier