[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phpinspect 130e2c06c5 13/18: Index types used in arrays
From: |
ELPA Syncer |
Subject: |
[elpa] externals/phpinspect 130e2c06c5 13/18: Index types used in arrays |
Date: |
Fri, 16 Aug 2024 06:58:57 -0400 (EDT) |
branch: externals/phpinspect
commit 130e2c06c59f1fe31b3ed3ab90ea61e3d27814f1
Author: Hugo Thunnissen <devel@hugot.nl>
Commit: Hugo Thunnissen <devel@hugot.nl>
Index types used in arrays
---
phpinspect-index.el | 2 +-
test/test-index.el | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/phpinspect-index.el b/phpinspect-index.el
index 861e355716..502b786861 100644
--- a/phpinspect-index.el
+++ b/phpinspect-index.el
@@ -537,7 +537,7 @@ Returns a list of type name strings."
(nconc used-types-rear
(phpinspect--find-used-types-in-tokens (cdr
(phpinspect-function-block token))))
used-types-rear (last used-types-rear)))
- ((or (phpinspect-list-p token) (phpinspect-block-p token))
+ ((or (phpinspect-list-p token) (phpinspect-block-p token)
(phpinspect-array-p token))
(setq used-types-rear
(nconc used-types-rear
(phpinspect--find-used-types-in-tokens (cdr token)))
used-types-rear (last used-types-rear))))
diff --git a/test/test-index.el b/test/test-index.el
index faf243eab2..81abf763b6 100644
--- a/test/test-index.el
+++ b/test/test-index.el
@@ -98,6 +98,7 @@ if ((new Monkey())->tree() === true) {
}
return StaticThing::create(new ThingFactory())->makeThing((((new
Potato())->antiPotato(new OtherThing(function (InnerFunctionParam $param) {
if ($param instanceof InstanceOffed) {
+ $bing = [ 'bong' => [ 'nested' => NestedArray::call(), ], ];
// nothing
}
})))));
@@ -109,7 +110,7 @@ if ($param instanceof InstanceOffed) {
(copy-sequence
'("Cheese" "Bacon" "Ham" "Bagel" "Monkey"
"ExtendedThing"
"StaticThing" "Thing" "ThingFactory" "Potato"
"OtherThing"
- "InnerFunctionParam" "PropertyType" "InstanceOffed"))
+ "InnerFunctionParam" "PropertyType" "InstanceOffed"
"NestedArray"))
#'string<))
(sort used-types (lambda (s1 s2) (string< (phpinspect-name-string
s1) (phpinspect-name-string s2))))))))
- [elpa] externals/phpinspect 3fff772d8a 03/18: Fix phpinspect-buffer-index-functions test, (continued)
- [elpa] externals/phpinspect 3fff772d8a 03/18: Fix phpinspect-buffer-index-functions test, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect d141f8a6db 08/18: Infer namespace token within import manipulation loop, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 8296641ba9 07/18: Implement removal of unused imports in `phpinspect-fix-imports', ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 93b815d71a 14/18: Index used traits (juste use of type, no actual functionality outside of that), ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 6a175c9e44 06/18: Update a few doc strings in phpinspect-index.el, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 31c6e06934 09/18: Reparse buffer when fixing import (+ add comment explaining why), ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 2e064d52e1 17/18: Implement containing type inference for collection-like class properties, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 5528aff2a2 01/18: Handle cases where the filepath of a type cannot be determined, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 2520c89680 02/18: Account for tokens after @method annotation when indexing, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect f2f1ac9b84 05/18: Add property types and anonymous function argument types to used-types index, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 130e2c06c5 13/18: Index types used in arrays,
ELPA Syncer <=
- [elpa] externals/phpinspect f1dc699560 11/18: Detect types used with "instanceoff", ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 3a0ce3ac2d 16/18: Fix another infinite recursion bug, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect b6eadfb799 12/18: Make autoload indexation more robust and prevent double indexation, ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect c20f010ee4 10/18: Introduce `phpinspect-buffer-fresh-p' and `phpinspect-buffer-reparse-if-not-fresh', ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 2d93ec7f79 15/18: Fix infinite recursion bug in `phpinspect--get-pattern-type-in-block', ELPA Syncer, 2024/08/16
- [elpa] externals/phpinspect 4ec4c40c9d 18/18: Add eldoc for sigil variables and allow display of multiple eldoc results, ELPA Syncer, 2024/08/16