Coder Social home page Coder Social logo

Comments (5)

Geolim4 avatar Geolim4 commented on June 12, 2024 1

@Geolim4 are you asking when the issue will be resolved (unknown) or are you offering to work on it?

I really would like to solve this issue, but this project is way too complex for me and lexer project like this are particularly complex.
No I'm working on a core update of Phpfastcache and I'd like to use arbitrary expression constructors, but until MD is patched, I can't push it to the CI. But no rush, nothing, I just want an approximate ETA so I can prepare my schedule :D

from pdepend.

Geolim4 avatar Geolim4 commented on June 12, 2024

Hello @tvbeek do you have any ETA on this issue ? So I can prepare things on my side depending ETA :)

Thank you !

from pdepend.

AJenbo avatar AJenbo commented on June 12, 2024

@Geolim4 are you asking when the issue will be resolved (unknown) or are you offering to work on it?

from pdepend.

tvbeek avatar tvbeek commented on June 12, 2024

I was confused by the complex building of the class name. But that isn't the problem, the problem is the new with (...)

<?php
$class = 'stdClass';

// this is no problem
$object1 = new $class;

// this result in an error.
$object2 = new ($class);

// this will also result in an error
$object3 = new ('stdClass');
The following error occurred:
Unexpected token: (, line: 8, col: 16, file: /home/tvbeek/projects/temp/test3.php.
#0 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(7882): PDepend\Source\Parser\UnexpectedTokenException->__construct()
#1 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(7849): PDepend\Source\Language\PHP\AbstractPHPParser->getUnexpectedTokenException()
#2 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(6828): PDepend\Source\Language\PHP\AbstractPHPParser->consumeToken()
#3 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(6757): PDepend\Source\Language\PHP\AbstractPHPParser->parseQualifiedNameRaw()
#4 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(2666): PDepend\Source\Language\PHP\AbstractPHPParser->parseQualifiedName()
#5 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(2445): PDepend\Source\Language\PHP\AbstractPHPParser->parseClassOrInterfaceReference()
#6 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(2466): PDepend\Source\Language\PHP\AbstractPHPParser->parseStandAloneExpressionTypeReference()
#7 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(1727): PDepend\Source\Language\PHP\AbstractPHPParser->parseExpressionTypeReference()
#8 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/PHPParserVersion70.php(346): PDepend\Source\Language\PHP\AbstractPHPParser->parseAllocationExpressionTypeReference()
#9 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(1705): PDepend\Source\Language\PHP\PHPParserVersion70->parseAllocationExpressionTypeReference()
#10 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(3034): PDepend\Source\Language\PHP\AbstractPHPParser->parseAllocationExpression()
#11 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(4904): PDepend\Source\Language\PHP\AbstractPHPParser->parseOptionalExpression()
#12 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(3148): PDepend\Source\Language\PHP\AbstractPHPParser->parseAssignmentExpression()
#13 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(6586): PDepend\Source\Language\PHP\AbstractPHPParser->parseOptionalExpression()
#14 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Source/Language/PHP/AbstractPHPParser.php(507): PDepend\Source\Language\PHP\AbstractPHPParser->parseOptionalStatement()
#15 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Engine.php(606): PDepend\Source\Language\PHP\AbstractPHPParser->parse()
#16 /home/tvbeek/projects/pdepend/src/main/php/PDepend/Engine.php(351): PDepend\Engine->performParseProcess()
#17 /home/tvbeek/projects/pdepend/src/main/php/PDepend/TextUI/Runner.php(322): PDepend\Engine->analyze()
#18 /home/tvbeek/projects/pdepend/src/main/php/PDepend/TextUI/Command.php(246): PDepend\TextUI\Runner->run()
#19 /home/tvbeek/projects/pdepend/src/main/php/PDepend/TextUI/Command.php(630): PDepend\TextUI\Command->run()
#20 /home/tvbeek/projects/pdepend/src/bin/pdepend(72): PDepend\TextUI\Command::main()
#21 {main}

I didn't yet have the solution but have this to prevent anyone to get distracted by the same part.

from pdepend.

Geolim4 avatar Geolim4 commented on June 12, 2024

Thanks !

from pdepend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.