ilovepdf-php icon indicating copy to clipboard operation
ilovepdf-php copied to clipboard

Typing inconsistency

Open flohw opened this issue 1 year ago • 1 comments

Hi,

I use PHPStan within my project and use your library. PHPStan reports some errors on ElementAbstract when we use it's derivations such as ElementSignature.

Mainly when chaining methods.

See here: https://phpstan.org/r/42328237-5731-43f3-bff4-ca2408a50694

When removing the @return tag or replacing by @return $this, there will be no error.

Would you mind if I provide a PR with this kind of improvements?

Thanks

flohw avatar Oct 10 '24 13:10 flohw

Should be solved in newer versions. Please feel free to do PR if needed!

maztch avatar Dec 05 '24 13:12 maztch