You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
completely separate projects, distinct namespacs, both using composer autoloading
both using thecodingmachine/safe:^2
I've a "glue" code which works a bit like:
require_once'projectA/vendor/autoload.php';
require_once'projectB/vendor/autoload.php';
// Do sommething with `ProjectA\Foo` and `ProjectB\Bar`
This used to work until both projects, which very well run and work on their own, got safe added and now it doesn't pass the second autoloader
PHP Fatal error: Cannot redeclare Safe\mysqli_get_client_stats() (previously declared in /projectA/vendor/thecodingmachine/safe/deprecated/mysqli.php:16) in /projectB/vendor/thecodingmachine/safe/generated/mysqli.php on line 34
Is there a way to get this working? I don't see anything like function_exists() in safe, so I guess not.
thx
The text was updated successfully, but these errors were encountered:
Hi 👋🏼 ,
it might be related to #53 or #253
The problem:
projectA/
andprojectB/
I've a "glue" code which works a bit like:
This used to work until both projects, which very well run and work on their own, got
safe
added and now it doesn't pass the second autoloaderIs there a way to get this working? I don't see anything like
function_exists()
insafe
, so I guess not.thx
The text was updated successfully, but these errors were encountered: