Skip to content

Raise driftingly/rector-laravel to ^2.7.1 for Rector 2.8 - #39

Merged
imanimanyara merged 6 commits into
mainfrom
fix/rector-laravel-floor
Oct 26, 2026
Merged

imanimanyara merged 6 commits into
mainfrom
fix/rector-laravel-floor

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

rector/rector 2.8.0 (2026-10-26) removed Rector\\Transform\\ValueObject\\ArrayDimFetchToMethodCall. driftingly/rector-laravel 2.7.0, still allowed by ^2.3, uses it in config/sets/laravel-arrayaccess-to-method-call.php, so the required rector check fails with a class-not-found error (seen on #38, which resolved rector 2.8.1 + rector-laravel 2.7.0). 2.7.1 no longer references it. Raising a floor to exclude a broken release, not a pin.

rector 2.8.0 removed Rector\Transform\ValueObject\ArrayDimFetchToMethodCall;
rector-laravel 2.7.0, still allowed by ^2.3, references it, so the
required rector check failed with a class-not-found error. 2.7.1 does not.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

imanimanyara and others added 5 commits October 26, 2026 14:10
This reverts commit b0a6274.
rector-laravel 2.7 deletes an authorize() that returns true. The test
fixtures define it on purpose, to cover the path where the method
exists, so the Rector job's auto-commit removed that coverage from 13
test files. Reverted and skipped.
@github-actions

Copy link
Copy Markdown

Benchmark results

Scenario Optimizations Native Laravel Optimized Speedup Δ vs base
Product import — 500 items, simple rules Wildcard, fast-check 193.2ms 3.5ms ~55x +0%
Nested order lines — 1000 orders × 5 line items Wildcard, fast-check (nested) 931.2ms 19.4ms ~48x +2%
Event scheduling — 100 items, field-ref dates Wildcard, partial fast-check 32.8ms 1.4ms ~24x +0%
Article submission — 50 items, custom Rule objects Wildcard only 11.1ms 3.5ms ~3x +9%
Conditional import — 100 items, 47 conditional fields Wildcard, pre-evaluation 256.2ms 55.3ms ~5x +0%
Login form — 3 fields, no wildcards Fast-check (flat) 0.2ms 0.0ms ~10x —

@imanimanyara
imanimanyara merged commit 13eff25 into main Oct 26, 2026
11 checks passed
@imanimanyara
imanimanyara deleted the fix/rector-laravel-floor branch October 26, 2026 14:27
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