Closed DaveLiddament closed 2 years ago
See #107. symfony/filesystem
is kind of a successor of webmozart/path-util
: https://symfony.com/blog/new-in-symfony-5-4-filesystem-path-class#comment-24757
Given SARB's use case it will probably be used in with older code bases. I'm trying to keep SARB's dependencies as wide as possible. It's main dependencies are the Symfony components and my aim is for SARB to work with all supported versions of Symfony components (and PHP versions). The restriction to Symfony filesystem 5.4 is too tight. For adding a new Symfony library it would ideally satisfy the version constraints 4.4 || ^5.0 || ^6.0. Hence this issue to copy code into SARB's codebase.
Fixed by #110
webmozart/path-util is deprecated. Copy the code used by SARB into a new file
src/Domain/Utils/Path.php
. Copy test code too and update code to PHP7.3