We have several projects that runs together, and more than one project is using clue/php-stream-filter. This causes a fatal error:
Fatal error: Cannot redeclare Clue\StreamFilter\append() (previously declared in...
The reason is that we will load the same functions in the same namespace at 2 different places.
Before to define a function, we need to check if it does not already exists, like in this project https://github.com/tightenco/collect/blob/laravel-5.8-ongoing/src/Collect/Support/helpers.php#L7.