This package currently fails with Call to undefined function STS\VisualTesting\Console\starts_with() when running on Laravel 6+.
Many array and string helpers were removed in Laravel 6, and now have to be called as static class functions. For example: starts_with() is now only Str::startsWith() and array_get() is now only Arr:get().
This package currently fails with
Call to undefined function STS\VisualTesting\Console\starts_with()
when running on Laravel 6+.Many array and string helpers were removed in Laravel 6, and now have to be called as static class functions. For example:
starts_with()
is now onlyStr::startsWith()
andarray_get()
is now onlyArr:get()
.I found a fork by @alvaxet which addresses at least some of this: https://github.com/alvaxet/laravel-visual-testing/commit/676d3f3e00455d9defa5b8407aa2c489c9fadebe and will be digging a bit deeper starting now...
UPDATE: alvaxet's PR only addresses one of the two helpers in the codebase, so I have created my own fork, fixed both, and opened a PR: #3