Comments (5)
@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.
Hello @tvbeek do you have any ETA on this issue ? So I can prepare things on my side depending ETA :)
Thank you !
from pdepend.
@Geolim4 are you asking when the issue will be resolved (unknown) or are you offering to work on it?
from pdepend.
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.
Thanks !
from pdepend.
Related Issues (20)
- PHP 8.3 syntax
- Values of hnd and hnt are mixed up in XML report HOT 1
- Response for a class (RFC) measure HOT 4
- Critical Error: A compilation unit should contain at least one token HOT 3
- Typo in encoding name HOT 4
- Invalid characters passed to "octdec" HOT 1
- Compatibility Issue with Symfony/Config v7.0.0 in `getConfigTreeBuilder` Method HOT 10
- Broken Interface Type for Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder HOT 2
- Missing .phar's HOT 1
- Major version 3.0.0 HOT 2
- Fail to parse throw exception in key offset access
- Trait method collision error for valid php file
- TooManyPublicMethods ignore exceptions HOT 1
- Use of "Parent" in namespace triggers "Unexpected token: Parent".
- Backed enum expects the type to be all lowercase HOT 2
- `Unexpected token: |` when using union typed constants HOT 4
- "Unexpected token: [" error when accessing array constant item HOT 2
- Cannot load xml namespace for validating config HOT 2
- FIlter pattern exclude regression HOT 7
- Handle comments when parsing expressions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdepend.