Skip to content

Support doctrine 4#39

Merged
kimpepper merged 18 commits into
mainfrom
doctrine-4
Jul 6, 2026
Merged

Support doctrine 4#39
kimpepper merged 18 commits into
mainfrom
doctrine-4

Conversation

@larowlan

@larowlan larowlan commented Jul 6, 2026

Copy link
Copy Markdown
Member

Drupal 12 require symfony 8
Symfony 8 requires doctrine 4+

Additional high-level changes in this PR:

  • Migrated CI from CircleCI to GitHub Actions, running inside the Skpr PHP CLI container.
  • Bumped GitHub Actions to latest (checkout/upload-artifact v7); switched PHPUnit reporting to a --teamcity problem matcher and PHPCS to checkstyle + cs2pr for inline annotations.
  • Raised minimum PHP to 8.2.
  • Bumped dev dependencies to latest: coder 9, php_codesniffer 4, phpstan 2, phpunit 11.
  • Removed abandoned pear/console_table and phpcompatibility/php-compatibility; added cs2pr.
  • Stopped tracking composer.lock and added it to .gitignore (library convention).
  • Migrated phpunit.xml.dist to the PHPUnit 11 schema and @group annotation to a #[Group] attribute.
  • Removed redundant always-true asserts flagged by PHPStan and applied coding-standard fixes.

@kimpepper kimpepper left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the new GitHub Actions workflow.

  • PHP provisioning: We don't usually use shivammathur/setup-php. Suggested running the job inside the standard Skpr PHP CLI container (skpr/php-cli:<version>-dev-v2-latest), which ships Composer and git.
  • Action versions: actions/checkout@v4 and actions/upload-artifact@v4 are ~3 majors behind; bumped to the latest (v7).
  • Composer: --no-suggest was removed in Composer 2.

Note: -latest image tags float the PHP patch version, which is fine for CI and consistent with other Skpr projects.

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated

@kimpepper kimpepper left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up to the previous review: instead of emitting a JUnit XML artifact, use a PHPUnit problem matcher so test failures surface inline as annotations. This supersedes the earlier upload-artifact@v7 suggestion.

Comment thread .github/workflows/ci.yml Outdated
kimpepper added 10 commits July 7, 2026 08:46
…poser.lock

- Set PHP minimum to 8.2
- Bump dev dependencies to highest minor+patch (coder 9, phpcs 4, phpstan 2, phpunit 11)
- Migrate phpunit.xml.dist to PHPUnit 11 schema
- Convert @group annotation to #[Group] attribute
- Remove abandoned pear/console_table and unused printTree() debug helper
- Remove redundant always-true assert($stmt instanceof Result) calls
- Fix Drupal 9.x coding standard whitespace
- Untrack and gitignore composer.lock (library)
@kimpepper kimpepper merged commit 95e0498 into main Jul 6, 2026
4 checks passed
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.

2 participants