-
Notifications
You must be signed in to change notification settings - Fork 0
Compatibility new release core #2
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
Conversation
…le ORM project - Deleted CYCLE_ORM_UPDATE_STATUS.md as it is no longer relevant. - Removed PACKAGIST_MIGRATION_REPORT.md which is obsolete after migration. - Eliminated PHPSTAN_FIXES_SUMMARY.md as fixes are now integrated. - Removed composer.json.local and composer.json.production files as they are no longer needed. - Deleted composer.scripts.json since its content is now part of composer.json. - Removed examples of usage patterns in valida-conceito-patterns.md as they are outdated. - Deleted metodos-corretos-helixphp.md for being redundant. - Removed update_composer_for_production.sh and update_dependencies.sh scripts as they are no longer necessary.
…a composer.json para versão específica do pivotphp/core; modifica phpunit.xml para desativar falhas em depreciações e altera MetricsCollector para logar falhas de consulta apenas fora do ambiente de teste
…mprove logging condition
…llector e atualiza a lógica de registro de falhas de consulta
…ma e melhora o cache nas verificações de ambiente
…e do EnvironmentHelper e melhora o gerenciamento de cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR aligns the package with the new pivotphp/core
release by removing legacy scripts, introducing cross-platform test coverage tooling, caching environment checks, and updating Composer and PHPUnit configurations.
- Removed deprecated dependency‐management and environment‐switcher scripts
- Added centralized caching in
EnvironmentHelper
and conditional logging inMetricsCollector
- Introduced cross-platform coverage scripts and updated
phpunit.xml
andcomposer.json
accordingly
Reviewed Changes
Copilot reviewed 23 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
update_dependencies.sh | Deleted legacy dependency‐update script |
update_composer_for_production.sh | Deleted production composer‐update script |
src/Monitoring/MetricsCollector.php | Conditional error logging based on testing environment |
src/Helpers/EnvironmentHelper.php | Added static cache, enhanced env detection, and clearCache() |
scripts/test-coverage.* | Added cross-platform test coverage scripts (sh, ps1, php, bat) |
phpunit.xml | Enabled failOnDeprecation , replaced <coverage> with <source> |
composer.json | Bumped pivotphp/core to ^1.1.0 , pointed test-coverage to script |
README.md | Documented cross-platform coverage commands |
Comments suppressed due to low confidence (2)
phpunit.xml:34
- The
<coverage>
section with report configuration was removed in favor of<source>
. Ensure PHPUnit 10 is configured (for example via<logging>
) to still generate HTML and Clover reports as expected.
<source>
src/Monitoring/MetricsCollector.php:5
- The import for EnvironmentHelper assumes it resides in the PivotPHP\CycleORM\Helpers namespace, but the class file itself does not declare that namespace. Please add the correct namespace to EnvironmentHelper or adjust the import path.
use PivotPHP\CycleORM\Helpers\EnvironmentHelper;
No description provided.