We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5948df9 commit 28434ebCopy full SHA for 28434eb
1 file changed
src/Support/NameResolver.php
@@ -2,7 +2,6 @@
2
3
namespace Permafrost\PhpCodeSearch\Support;
4
5
-use Permafrost\PhpCodeSearch\Results\Nodes\ClassPropertyNode;
6
use PhpParser\Node;
7
8
class NameResolver
@@ -59,6 +58,13 @@ public static function resolve($node)
59
58
return null;
60
}
61
+ public static function resolveAll(array $nodes): array
62
+ {
63
+ return collect($nodes)->each(function($node) {
64
+ return self::resolve($node);
65
+ })->filter()->all();
66
+ }
67
+
68
protected static function propertiesExist($object, array $propertyNames): bool
69
{
70
foreach ($propertyNames as $propertyName) {
0 commit comments