spekulatius / PHPScraper

A universal web-util for PHP.

Home Page:https://phpscraper.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix problems reported by PHPStan

szepeviktor opened this issue · comments

It would be nice to have a UsesXPathFilters::filterExtractAttribute beside filterExtractAttributes.
One would return array<string>, the other array<array<string>>.

Which use-cases do you want to cover? You could also try filterFirstExtractAttribute to see if it works for your needs.

Which use-cases do you want to cover?

To make static analysis possible.
Because the return types are different.

I know, I know. Popular software come with the liberty of using one method for several purposes. But I am not intended to be popular!

Okay, feel free to propose a PR :) Maybe after we got the PHPStan branch merged?

I do not have plans to contribute more.