-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from johnzuk/6.0.0
New 6.0.0 version
- Loading branch information
Showing
78 changed files
with
1,426 additions
and
1,801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Static Analysis | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
composer: | ||
name: Composer validation | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
tools: composer:2.4.3 | ||
coverage: none | ||
|
||
- name: Execute composer validate | ||
run: composer validate --strict | ||
|
||
phpcs: | ||
name: PHPCs | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
tools: composer:2.4.3 | ||
coverage: none | ||
|
||
- name: Install Dependencies | ||
uses: nick-invision/retry@v1 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --no-interaction --no-progress | ||
|
||
- name: Execute PHPCs | ||
run: vendor/bin/phpcs src tests | ||
|
||
|
||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
tools: composer:2.4.3 | ||
coverage: none | ||
|
||
- name: Install Dependencies | ||
uses: nick-invision/retry@v1 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --no-interaction --no-progress | ||
|
||
- name: Execute PHPStan | ||
run: vendor/bin/phpstan analyze -c phpstan.neon src tests --no-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
name: PHP ${{ matrix.php }} | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
php: ['8.0', '8.1', '8.2'] | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:2.4.3 | ||
coverage: none | ||
|
||
- name: Install Dependencies | ||
uses: nick-invision/retry@v1 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --no-interaction --no-progress | ||
|
||
- name: Execute PHPUnit | ||
run: vendor/bin/phpunit | ||
|
||
coverage: | ||
name: Test Coverage | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
tools: composer:2.4.3 | ||
coverage: pcov | ||
|
||
- name: Install Dependencies | ||
uses: nick-invision/retry@v1 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
command: composer update --no-interaction --no-progress | ||
|
||
- name: Execute PHPUnit | ||
run: vendor/bin/phpunit --coverage-clover=./coverage.xml | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.xml | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in('./src') | ||
->in('./tests'); | ||
; | ||
|
||
$config = new PhpCsFixer\Config(); | ||
return $config->setRules([ | ||
'@Symfony' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'phpdoc_summary' => false, | ||
'phpdoc_no_package' => false, | ||
'phpdoc_order' => true, | ||
'phpdoc_align' => true, | ||
'ordered_imports' => true, | ||
'native_function_invocation' => true, | ||
'@PSR12' => true, | ||
'strict_param' => true, | ||
'declare_strict_types' => true, | ||
]) | ||
->setFinder($finder) | ||
; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
preset: recommended | ||
|
||
disabled: | ||
- align_double_arrow | ||
- no_multiline_whitespace_before_semicolons | ||
preset: psr12 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,41 @@ | ||
# UPGRADE FROM 4.x to 5.0 | ||
# UPGRADE FROM 5.x to 6.0 | ||
|
||
Installation | ||
------------ | ||
Before upgrading this package make sure you are using [PHP 7.1](http://php.net/migration71) or newer as it is required to run version 5.0 of this library. | ||
Before upgrading this package make sure you are using [PHP 8.0](http://php.net/migration80) or newer as it is required to run version 5.0 of this library. | ||
|
||
To upgrade, simply run: | ||
```bash | ||
composer require gusapi/gusapi ^5.0 | ||
composer require gusapi/gusapi ^6.0 | ||
``` | ||
|
||
Everything should work the same as in versions 4.x - | ||
Everything should work the same as in versions 5.x - | ||
|
||
GusApi | ||
------- | ||
* The `GusApi::getFullReport` now throws `InvalidReportTypeException` for invalid report name. | ||
* The `GusApi::getUserKey` has been removed. | ||
|
||
* The `getBulkReport` method added. | ||
* The `GusApi::setUserKey` has been removed. | ||
|
||
* The `GusApi::dataStatus` now returns `DateTimeImmutable` instead of `DateTime`. | ||
* The `GusApi::setSessionId` has been removed. | ||
|
||
* The `GusApi::dataStatus` now throws `InvalidServerResponseException` exception. | ||
* The `GusApi::getResultSearchMessage` has been removed. | ||
|
||
SearchReport | ||
ReportTypes | ||
----- | ||
|
||
* Property `SearchReport::$regon14` has been removed. | ||
|
||
* The `SearchReport::$nip` `$nipStatus` `$propertyNumber` `$apartmentNumber` `$activityEndDate` properties have been added. | ||
|
||
BulkReportTypes | ||
------ | ||
* The `BulkReportTypes` has been added. | ||
|
||
ReportTypeMapper | ||
------ | ||
* The `ReportTypeMapper` has been removed. | ||
|
||
Request | ||
----- | ||
* The `GetValue::setPNazwaParametru` method has been removed. | ||
|
||
* The `GetFullReport::setPRegon` and `setPNazwaRaportu` methods have been removed. | ||
* Const `ReportTypes::REPORT_ACTIVITY_PHYSIC_PERSON` has been removed and replaced by `ReportTypes::REPORT_PERSON`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_PHYSIC_CEIDG` has been removed and replaced by `ReportTypes::REPORT_PERSON_CEIDG`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_PHYSIC_AGRO` has been removed and replaced by `ReportTypes::REPORT_PERSON_AGRO`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_PHYSIC_OTHER_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_PERSON_OTHER`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_LOCAL_PHYSIC_WKR_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_PERSON_DELETED_BEFORE_20141108`. | ||
* Const `ReportTypes::REPORT_LOCALS_PHYSIC_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_PERSON_LOCALS`. | ||
* Const `ReportTypes::REPORT_LOCAL_PHYSIC_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_PERSON_LOCAL`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_PHYSIC_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_PERSON_ACTIVITY`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_LOCAL_PHYSIC_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_PERSON_LOCAL_ACTIVITY`. | ||
* Const `ReportTypes::REPORT_PUBLIC_LAW` has been removed and replaced by `ReportTypes::REPORT_ORGANIZATION`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_LAW_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_ORGANIZATION_ACTIVITY`. | ||
* Const `ReportTypes::REPORT_LOCALS_LAW_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_ORGANIZATION_LOCALS`. | ||
* Const `ReportTypes::REPORT_LOCAL_LAW_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_ORGANIZATION_LOCAL`. | ||
* Const `ReportTypes::REPORT_ACTIVITY_LOCAL_LAW_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_ORGANIZATION_LOCAL_ACTIVITY`. | ||
* Const `ReportTypes::REPORT_COMMON_LAW_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_ORGANIZATION_PARTNERS`. | ||
* Const `ReportTypes::REPORT_UNIT_TYPE_PUBLIC` has been removed and replaced by `ReportTypes::REPORT_UNIT_TYPE`. |
Oops, something went wrong.