-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix BC break add missing method ProviderInterface::getHolidays
#277
Conversation
@jwojtyra-aterian Thank you very much for the PR. Could give me an example of how this would break things? All tests are successful (Unless the tests missed something :) ) |
Sure, an example from this repo, I run phpstan with current configuration but for some tests
|
@jwojtyra-aterian Indeed, the test classes are not yet following the checks as the base code ( Not sure I understand why you can't upgrade Yasumi in your project. PHPStan does not look at vendor packages when you use Yasumi as a composer package. |
Yes but just like wrote at the beginning, I use method |
Ah, you mean when using PHPStan for your own project? |
yes |
I see, Sorry it wasn't immediately clear to me from your description. I'll make a fix for this. |
In the previous version
Yasumi\Yasumi::create
was returningYasumi\Provider\AbstractProvider
now its returnYasumi\ProviderInterface
without methodgetHolidays
. Even tests expects thatProviderInterface::getHolidays
exists for exampleYasumi\tests\Base\YasumiTest::testRemoveHoliday