Skip to content

Commit d8c3536

Browse files
committed
chore(util): Clean up docblocks
1 parent 8612630 commit d8c3536

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Util.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)