File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -164,18 +164,7 @@ public static function toString($expression, $single = false)
164164 }
165165
166166 /**
167- * A sad attempt to check if an expression passed is actually an array.
168- * Unfortunately, ANY expression passed to Blade is a string until it is
169- * returned and parsed through the compiler. Even attempting to manually
170- * convert the string to an array will then cause a string to array exception
171- * during compiled time– so regardless, it must then be converted back to a
172- * string.
173- *
174- * @see Utilities::toString()
175- *
176- * The only other way to approach this would be a clever `preg_match_all()`
177- * or `eval()` which isn't happening. I've poached every other Blade directives
178- * library and none have a viable solution.
167+ * Determine if the expression looks like an array.
179168 *
180169 * @param mixed $expression
181170 * @return bool
You can’t perform that action at this time.
0 commit comments