summaryrefslogtreecommitdiffstats
path: root/src/Fragments/ParamDefFragment.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fragments/ParamDefFragment.php')
-rw-r--r--src/Fragments/ParamDefFragment.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Fragments/ParamDefFragment.php b/src/Fragments/ParamDefFragment.php
index c2582ef..132898f 100644
--- a/src/Fragments/ParamDefFragment.php
+++ b/src/Fragments/ParamDefFragment.php
@@ -112,12 +112,10 @@ class ParamDefFragment extends Fragment
break;
}
}
-
- $expr->tokens[] = $token;
}
// Last iteration was not saved.
- if (!empty($expr->tokens)) {
+ if (!empty($expr->name)) {
$ret[] = $expr;
}