Hi,
I'm experiencing an issue with a tool that relies on this package.
The problem occurs when the tool tries to include vendor/autoload.php which automatically includes these functions via composer.
|
"files": [ |
|
"src/functions.php", |
|
"src/Future/functions.php", |
|
"src/Internal/functions.php" |
|
] |
It results in a "previously declared" function error due to a lack of safety guards to check if the function already exists.
Here is a screenshot illustrating the issue:
Suggested Fix:
Add a safety guard to the functions to prevent redeclaration, like:
if (! \function_exists('functionName')) {
// function definition here
}
Thank you for your time.
Hi,
I'm experiencing an issue with a tool that relies on this package.
The problem occurs when the tool tries to include
vendor/autoload.phpwhich automatically includes these functions via composer.amp/composer.json
Lines 48 to 52 in 138801f
It results in a "previously declared" function error due to a lack of safety guards to check if the function already exists.
Here is a screenshot illustrating the issue:
Suggested Fix:
Add a safety guard to the functions to prevent redeclaration, like:
Thank you for your time.