Detect array access #1

Open
opened 2 years ago by hugo · 1 comments
hugo commented 2 years ago
Owner

Detect when a variable is an item of a collection/array when resolving its type. Example scenarios:

loop:

for ($bla as $bloe) {}
for ($bla as $boe => $bloo) {}

assignment:

$bla = $bloe[1]

$bla->

derived statement:

$bla[1]->
Detect when a variable is an item of a collection/array when resolving its type. Example scenarios: loop: ```php for ($bla as $bloe) {} for ($bla as $boe => $bloo) {} ``` assignment: ``` $bla = $bloe[1] $bla-> ``` derived statement: ``` $bla[1]-> ```
hugo self-assigned this 2 years ago
hugo added this to the Ready for fieldtesting milestone 2 years ago
hugo removed their assignment 2 years ago
hugo self-assigned this 1 year ago
hugo added the
Beta Feature
label 1 year ago
hugo commented 1 year ago
Poster
Owner

Implemented in 224bbd7916

Implemented in https://git.snorba.art/hugo/phpinspect.el/commit/224bbd791602f724db8b81bb860b8444142b11e3
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hugo/phpinspect.el#1
Loading…
There is no content yet.