Skip to content

Commit 308de02

Browse files
authored
Merge pull request LaravelCollective#654 from ngmy/fix-helper-return-types
Fix the return type of helpers
2 parents 5ef9a3c + b43878d commit 308de02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/helpers.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @param bool $secure
1111
* @param bool $escape
1212
*
13-
* @return string
13+
* @return \Illuminate\Support\HtmlString
1414
*/
1515
function link_to($url, $title = null, $attributes = [], $secure = null, $escape = true)
1616
{
@@ -27,7 +27,7 @@ function link_to($url, $title = null, $attributes = [], $secure = null, $escape
2727
* @param array $attributes
2828
* @param bool $secure
2929
*
30-
* @return string
30+
* @return \Illuminate\Support\HtmlString
3131
*/
3232
function link_to_asset($url, $title = null, $attributes = [], $secure = null)
3333
{
@@ -44,7 +44,7 @@ function link_to_asset($url, $title = null, $attributes = [], $secure = null)
4444
* @param array $parameters
4545
* @param array $attributes
4646
*
47-
* @return string
47+
* @return \Illuminate\Support\HtmlString
4848
*/
4949
function link_to_route($name, $title = null, $parameters = [], $attributes = [])
5050
{
@@ -61,7 +61,7 @@ function link_to_route($name, $title = null, $parameters = [], $attributes = [])
6161
* @param array $parameters
6262
* @param array $attributes
6363
*
64-
* @return string
64+
* @return \Illuminate\Support\HtmlString
6565
*/
6666
function link_to_action($action, $title = null, $parameters = [], $attributes = [])
6767
{

0 commit comments

Comments
 (0)