Skip to content

Winter v1.2.13 Support - #71

Merged
LukeTowers merged 27 commits into
mainfrom
wip/1.3
Aug 24, 2026
Merged

LukeTowers merged 27 commits into
mainfrom
wip/1.3

Conversation

@jaxwilko

@jaxwilko jaxwilko commented Jul 25, 2025 •

Copy link
Copy Markdown
Member

Targeting Winter v1.2.13+. The nikic/php-parser v5 upgrade in Winter Storm ships in 1.2.13 (a patch on the stable line), not just 1.3. Without this PR, Builder hard-fatals whenever it parses/generates PHP (e.g. saving a migration) — PhpParser\Lexer\Emulative::__construct() now requires a PhpVersion, and ParserFactory::create() was removed. Verified locally: created a plugin → table → saved a migration, and the file + DB table were produced successfully. So this needs to land on the stable line, not only 1.3.


I've added support for php-parser v5, I tested and created a plugin and made some changes to that plugin and couldn't find anything broken, but anything that extends from our abstract PhpSourceParser may run into issues as the lexer property has been removed.

Summary by CodeRabbit

  • Tests

    • Improved test clarity with more descriptive names and modernized test coverage configuration.
  • Chores

    • Expanded automated testing across Windows and Linux with PHP 8.2–8.4.
    • Updated PHP parsing support to improve compatibility with newer PHP versions.
    • Simplified PHPUnit configuration and test environment setup.
    • Updated version 2.2.0 compatibility to support Winter v1.2.13 and later.

@LukeTowers LukeTowers mentioned this pull request Jul 25, 2025
5 of 17 tasks
Comment thread .github/workflows/unit-tests.yaml Resolved
@LukeTowers LukeTowers changed the title [WIP] Winter v1.3 Support Winter v1.3 Support Jul 26, 2025
@coderabbitai

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

The php-parser v5 bump ships in Winter 1.2.13, so Builder needs this support
on the stable line, not only 1.3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@LukeTowers LukeTowers changed the title Winter v1.3 Support Winter v1.2.13 Support Aug 24, 2026
tearDown() called parent::tearDown() before cleanUp(), so the File facade could
already be gone when cleanUp() runs File::deleteDirectory(), silently leaving
test artifacts on disk. Mirror setUp()'s order in reverse: clean up first, then
parent::tearDown().

Addresses CodeRabbit feedback on PR #71.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@LukeTowers
LukeTowers merged commit 9f87156 into main Aug 24, 2026
8 checks passed
@LukeTowers
LukeTowers deleted the wip/1.3 branch August 24, 2026 05:04
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