question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug/feature] impossible detect `&` in staticlookup

See original GitHub issue

Input:

$var = &self::getElementByPath();

I think parent and static also affected.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-akaitcommented, Aug 31, 2019

@ichiriac what about $var = &(SOMETHING);? Which node will have byref? It is introduce new problems, all parsers for php store byRef on assign node (only for this https://github.com/php/php-src/blob/php-7.4.0beta4/Zend/zend_language_parser.y#L886 scenario), we should keep byRef on variable for arguments/array/etc. only if = and & together we should keep byRef on assign node

1reaction
alexander-akaitcommented, Aug 20, 2019

@ichiriac hi, I will try to find the time for this in near future (hope this week)

Read more comments on GitHub >

github_iconTop Results From Across the Web

[feature] Convert silent mode to a property · Issue #195 · glayzzle ...
Same idea as parenthesizedExpression, use a new property that replace the silent node with a silent property (true/undefined) in order to reprensent the ......
Read more >
Why use <T::Lookup as StaticLookup>::Source instead of plain T
StaticLookup is an abstraction over an address which can convert multiple different address types into an underlying AccountId.
Read more >
StaticLookup in sp_runtime::traits - Rust - sc_service
Means of changing one type into another in a manner dependent on the source type. This variant is different to `Lookup` in that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found