Closed tomasfejfar closed 6 years ago
What do you think, @jakubbartel?
Great!
Just for note: when I use php-component as a composer dependency I need to use only the first of ignoreErrors
in my project's phpstan.neon
, but I hope this will be clear for developers (not to use all of ignored errors from php-component project).
I also came across this - https://github.com/keboola/php-component/pull/10#issuecomment-370409670
It's easy to fix, no rocket science, but blind copy & paste of phpstan.neon
won't work.
I changed it little bit more. As @odinuv noted, the issue was partly with intersection typehint (which was a reminiscence from earlier version). When I removed it the PhpStan errors are gone. So I replaced the note with a more general note.
Ještě zvažuju, jak to udělat s tagnutím nové verze. Tím, že se to srovnalo a přibyly typehinty, tak to není zpětně kompatibilní. Ale nevím, jestli kvuli tomu hned vydávat novou major verzi. Zatím to používáme stejně jen my a @jakubbartel ne? Ale formálně správně by bylo asi 2.0.0. Co myslíte?
Klidně novou major verzi.
OK, done.
Fixes #8