Skip to content

Commit 43a6937

Browse files
author
Fredrick Peter
committed
Resolve Conflicts with Other Frameworks
1 parent 25702e7 commit 43a6937

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function form($attribute = null)
2020
}
2121
}
2222

23-
if (! function_exists('old')) {
23+
if (! AppIsNotCorePHP() && ! function_exists('old')) {
2424

2525
/**
2626
* Return previously entered value
@@ -76,7 +76,7 @@ function config_form(?bool $error_type = false, ?bool $csrf_token = true, $reque
7676
}
7777

7878

79-
if (! function_exists('csrf_token')) {
79+
if (! AppIsNotCorePHP() && ! function_exists('csrf_token')) {
8080

8181
/**
8282
* Get Csrf Token
@@ -90,7 +90,7 @@ function csrf_token()
9090
}
9191

9292

93-
if (! function_exists('csrf')) {
93+
if (! AppIsNotCorePHP() && ! function_exists('csrf')) {
9494

9595
/**
9696
* Generate Input for Csrf Token

0 commit comments

Comments
 (0)