Replace legacy league/pipeline dependency by standard Laravel Pipeline#229
Replace legacy league/pipeline dependency by standard Laravel Pipeline#229onlime wants to merge 2 commits intohisorange:stablefrom
Conversation
|
Maybe I am missing something, but where is the Laravel pipelines package being included in composer.json? |
$ composer why laravel/framework
laravel/framework v11.40.0 replaces illuminate/pipeline (self.version)
orchestra/testbench v9.9.0 requires laravel/framework (^11.35.0)
orchestra/workbench v9.13.1 requires laravel/framework (^11.35)
(...)so, unsure, if |
|
Yes, it needs to be defined. Because For example, when you deploy a PHP app, you usually use |
|
I removed the dependency and replaced it with a native array_reduce in https://github.com/hisorange/browser-detect/pull/230/files#diff-47bc8653b21716576958e25b6d7356ecb0f0070f17554d12d2bee985ac211b26 |
I have removed the outdated and unmaintained
league/pipelineand replaced it with standard LaravelPipelineto avoid such deprecations in PHP 8.4:so the
Parser::process()now looks like this:I had to change the return value logic in
BrowserDetect, so it is acting the same as the other stage classes. To get all tests working, I had to pass the$nextClosure to all those constructors, maybe not in the most elegant way.This fixes #228
I cannot promise any further support for this package, as I have moved away to using plain
matomo/device-detectorwith the built-inLaravelCache. I never needed more than basic browser client/OS detection, so this package was a complete overkill for my use case, with just too many dependencies. But thanks a lot for the great work!