diff --git a/README.md b/README.md index 47ff12730..8bc3564e3 100644 --- a/README.md +++ b/README.md @@ -91,9 +91,11 @@ Holidays::for('be')->getName('2024-01-01'); // Nieuwjaar ### Package limitations 1. Islamic holidays are not supported (yet) -## Contributing a new country +## Contributing -If you want to add a new country, you can create a pull request. +This is a community driven package. If you find any errors, please create an issue or a pull request. + +## Adding a new country 1. Create a new class in the `Countries` directory. It should extend the `Country` class. 2. Add a test for the new country in the `tests` directory. diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 3f282e151..17eba40a1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -15,6 +15,11 @@ parameters: count: 1 path: src/Countries/Country.php + - + message: "#^Parameter \\#1 \\$timestamp of static method Carbon\\\\CarbonImmutable\\:\\:createFromTimestamp\\(\\) expects float\\|int\\|string, int\\|false given\\.$#" + count: 1 + path: src/Countries/Country.php + - message: "#^Parameter \\#2 \\$callback of function uasort expects callable\\(bool\\|Carbon\\\\CarbonImmutable, bool\\|Carbon\\\\CarbonImmutable\\)\\: int, Closure\\(Carbon\\\\CarbonImmutable, Carbon\\\\CarbonImmutable\\)\\: int\\<\\-1, 1\\> given\\.$#" count: 1