Skip to content
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

Update various files to prefer PHP 8.1 and PHPUnit 10.5 or 11.0, remo… #25

Merged
merged 7 commits into from
May 20, 2024

Conversation

Dropelikeit
Copy link
Owner

…ve PHPStan and restructure tests

Various files have been updated to prefer PHP >=8.1 and PHPUnit >=10.5 or 11.0. The PHPStan tool has been removed. PHPUnit tests have been restructured using Attributes instead of DocBlocks. The service layer is expanded with new Exception classes and all Facades have been revised to better align with the library's intended functionality.

…ve PHPStan and restructure tests

Various files have been updated to prefer PHP >=8.1 and PHPUnit >=10.5 or 11.0. The PHPStan tool has been removed. PHPUnit tests have been restructured using Attributes instead of DocBlocks. The service layer is expanded with new Exception classes and all Facades have been revised to better align with the library's intended functionality.

Signed-off-by: Marcel Strahl <[email protected]>
@Dropelikeit Dropelikeit self-assigned this Mar 9, 2024
The GitHub CI workflow has been updated to remove support for PHP 8.0 and the PHPStan static analysis tool. The workflow now emphasizes compatibility with PHP 8.1, PHPUnit 10.5 or 11.0, and prioritizes the use of Psalm for code analysis.

Signed-off-by: Marcel Strahl <[email protected]>
The CHANGELOG has been updated to reflect recent changes including dependency upgrades, removal of the PHPStan tool, and transitioning all test classes to use attributes instead of annotations. This update aims to provide a detailed record of modifications for easier project tracking and version control.

Signed-off-by: Marcel Strahl <[email protected]>
The continuous integration pipeline in GitHub Actions has been updated to include support for PHP 8.3. The changes include setting up PHP 8.3 environment, caching composer packages for faster builds, and running unit tests, style checks, and static analysis on code.

Signed-off-by: Marcel Strahl <[email protected]>
Moved interface files to Contracts directory for better organization. Refactored magic numbers in codes to use constants from new FiguresInterface for improved readability. Test cases and documentation were updated accordingly.

Signed-off-by: Marcel Strahl <[email protected]>
The CI Tests have been modified to only trigger on pull requests and pushes to the master branch. Also, the composer.json file has been updated to allow the phpstan/extension-installer plugin alongside the infection/extension-installer. This ensures that our testing workflow is not unnecessarily triggered and aligns our composer settings with the additional plugin.

Signed-off-by: Marcel Strahl <[email protected]>
This commit includes mutation testing in continuous integration workflows with 'infection' and optimizes test configurations. It adds a new test to 'DiscountCalculationTest', updates several file paths in 'infection.json5', and modifies 'composer.json' to improve the test script. Unnecessary file exclusions in 'psalm.xml' and 'infection.json5' were removed as well.

Signed-off-by: Marcel Strahl <[email protected]>
@Dropelikeit Dropelikeit merged commit d2cf1cf into master May 20, 2024
3 checks passed
@Dropelikeit Dropelikeit deleted the feature/upgrade_dependencies_and_code branch May 20, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant