Skip to content

[master] [fix ci] Upgrade to Laravel Zero 12#146

Open
JoshSalway wants to merge 2 commits intolaravel:masterfrom
JoshSalway:upgrade/laravel-zero-12-v2
Open

[master] [fix ci] Upgrade to Laravel Zero 12#146
JoshSalway wants to merge 2 commits intolaravel:masterfrom
JoshSalway:upgrade/laravel-zero-12-v2

Conversation

@JoshSalway
Copy link
Copy Markdown

@JoshSalway JoshSalway commented Apr 7, 2026

Summary

Upgrades the CLI from Laravel Zero 10 to Laravel Zero 12. Based on the work by @buzkall in #101, with fixes applied on top.

Commits

  1. @buzkall - Upgrade to Laravel Zero 12 (dependency bumps, return type fix, spatie/once removal)
  2. @JoshSalway - Fix upgrade: restore Once::flush(), revert version bump, fix phpstan config, fix trailing comma

Changes

  • Bump PHP requirement from ^8.1 to ^8.2
  • Bump laravel-zero/framework from ^10.0.2 to ^12.0
  • Bump larastan/larastan from ^2.6.0 to ^3.0
  • Bump pestphp/pest from ^2.6.1 to ^3.0
  • Remove spatie/once, replace with Illuminate\Support\Once (Laravel 11+ built-in)
  • Add : int return type to Command::execute() (PHP 8.4 deprecation fix)
  • Remove deprecated PHPStan config options

What this may fix

  • CI test workflow -- composer install currently fails on master due to dependency conflicts, which means the test suite can't run. This upgrade resolves the dependency issues. Note: the tests workflow has been automatically disabled by GitHub due to inactivity. After merging, a maintainer will need to re-enable it via Actions > tests > Enable workflow.
  • PHP 8.4 deprecation warnings

Testing

composer install
vendor/bin/pest       # 98/102 pass (4 pre-existing DeployCommandTest failures, see #144)
vendor/bin/phpstan    # passes

Tested locally on PHP 8.4.18 (WSL/Linux) and PHP 8.4.19 (Windows).

Note: I don't have a Laravel Forge subscription and was unable to end-to-end test. I currently use Laravel Cloud for my hosting needs instead.

Post-merge checklist

buzkall and others added 2 commits April 7, 2026 12:53
Fix warnings in php 8.4 by upgrading to laravel-zero 12
Remove spatie/once dependency
- Replace removed Once\Cache::flush() with Illuminate\Support\Once::flush()
  in ServerSwitchCommand and tests/Pest.php (cache must be flushed
  after server context switch and between tests)
- Revert version bump from 2.0.0 to 1.8.3 (maintainer decision)
- Restore larastan extension.neon include (still needed in larastan 3.x)
- Remove unnecessary phpstan additions (scanDirectories, rootDir, tmpDir)
- Fix trailing comma in composer.json require-dev
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

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