Closed bytehead closed 3 years ago
Trying to get rid of Contao's global namespaced classes.
When using \Haste\Input\Input::getAutoItem(...) for example PHPStan will report following:
\Haste\Input\Input::getAutoItem(...)
Class Input not found. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
PS: There is a workaround - while bootstrapping PHPStan you can boot the Contao Framework, but that's a bit overkill IMO.
@Toflar @aschempp should be safe to merge, or do you see any potential issues with this?
Just released as 4.25, thank you @bytehead !
Thanks for merging! 🙏 You're welcome!
Trying to get rid of Contao's global namespaced classes.
When using
\Haste\Input\Input::getAutoItem(...)
for example PHPStan will report following:PS: There is a workaround - while bootstrapping PHPStan you can boot the Contao Framework, but that's a bit overkill IMO.