Skip to content

Commit

Permalink
chore(util): Clean up docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jul 30, 2023
1 parent 8612630 commit d8c3536
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,7 @@ public static function toString($expression, $single = false)
}

/**
* A sad attempt to check if an expression passed is actually an array.
* Unfortunately, ANY expression passed to Blade is a string until it is
* returned and parsed through the compiler. Even attempting to manually
* convert the string to an array will then cause a string to array exception
* during compiled time– so regardless, it must then be converted back to a
* string.
*
* @see Utilities::toString()
*
* The only other way to approach this would be a clever `preg_match_all()`
* or `eval()` which isn't happening. I've poached every other Blade directives
* library and none have a viable solution.
* Determine if the expression looks like an array.
*
* @param mixed $expression
* @return bool
Expand Down

0 comments on commit d8c3536

Please sign in to comment.