scala.NotImplementedError: unexpected expression 'PhpListExpr(List(Some(PhpArrayItem(None,PhpVariable(PhpNameExpr(to,PhpAttributes(Some(477),Some(477),None,16740,16743)),PhpAttributes(Some(477),Some(477),None,16740,16743)),false,false,PhpAttributes(Some(477),Some(477),None,16740,16743))), Some(PhpArrayItem(None,PhpVariable(PhpNameExpr(type,PhpAttributes(Some(477),Some(477),None,16745,16750)),PhpAttributes(Some(477),Some(477),None,16745,16750)),false,false,PhpAttributes(Some(477),Some(477),None,16745,16750))), Some(PhpArrayItem(None,PhpVariable(PhpNameExpr(path,PhpAttributes(Some(477),Some(477),None,16752,16757)),PhpAttributes(Some(477),Some(477),None,16752,16757)),false,false,PhpAttributes(Some(477),Some(477),None,16752,16757)))),PhpAttributes(Some(477),Some(477),None,16734,16759))' of type class io.joern.php2cpg.parser.Domain$PhpListExpr at io.joern.php2cpg.astcreation.AstForExpressionsCreator.astForExpr(AstForExpressionsCreator.scala:55) at io.joern.php2cpg.astcreation.AstForExpressionsCreator.astForExpr$(AstForExpressionsCreator.scala:18) at io.joern.php2cpg.astcreation.AstCreator.astForExpr(AstCreator.scala:18)
foreach ( self::$domain_map as $from => list( $to, $type, $path ) ) {
$data['domainMap'][ $from ] = ( 'core' === $type ? '' : "{$type}/" ) . $to;
if ( '' !== $path ) {
$data['domainPaths'][ $from ] = trailingslashit( $path );
}
}
Describe the bug
I got
NotImplementError,the error code is:
To Reproduce
Steps to reproduce the behavior:
php2cpg test.php -o test.cpgDesktop (please complete the following information):
class-assets.php