Skip to content

Allow Symfony 8 components for Laravel 13 compatibility#116

Merged
simonhamp merged 1 commit into
mainfrom
fix/symfony-8-compat
May 29, 2026
Merged

Allow Symfony 8 components for Laravel 13 compatibility#116
simonhamp merged 1 commit into
mainfrom
fix/symfony-8-compat

Conversation

@PeteBishwhip

@PeteBishwhip PeteBishwhip commented May 29, 2026

Copy link
Copy Markdown
Member

On a fresh Laravel 13 app, composer require nativephp/desktop fails because Laravel 13 locks symfony/finder at v8.x, but this package caps it at ^7.0:

- nativephp/desktop 2.2.0 requires symfony/finder ^6.2|^7.0 -> found symfony/finder[v6.2.0, ..., v7.4.8] but the package is fixed to v8.0.8 (lock file version) by a partial update and that version does not match.
  • Drop symfony/finder from require — it has no imports in src/ or tests/. laravel/framework pulls it in transitively, so the framework's own constraint will pick the right version per Laravel release.
  • Widen symfony/filesystem to ^6.4|^7.2|^8.0 (additive — older Laravel versions still resolve to Sf 6/7). This one is genuinely used (mirror, exists, remove, mkdir, copy, dumpFile, Path::join) and the methods are stable in Symfony 8.

Widen symfony/filesystem to allow ^8.0 (used directly in the codebase)
and drop the unused symfony/finder requirement, which laravel/framework
already pulls in transitively. Fixes 'composer require nativephp/desktop'
on a fresh Laravel 13 app.
@PeteBishwhip

Copy link
Copy Markdown
Member Author

This confirms resolution:

composer require nativephp/desktop:dev-fix/symfony-8-compat
./composer.json has been updated
Running composer update nativephp/desktop
Loading composer repositories with package information
Updating dependencies
Lock file operations: 4 installs, 0 updates, 0 removals
  - Locking nativephp/desktop (dev-fix/symfony-8-compat 3cc8713)
  - Locking nativephp/php-bin (1.2.0)
  - Locking spatie/laravel-package-tools (1.93.1)
  - Locking symfony/filesystem (v8.0.11)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
  - Downloading nativephp/desktop (dev-fix/symfony-8-compat 3cc8713)
  - Installing symfony/filesystem (v8.0.11): Extracting archive
  - Installing spatie/laravel-package-tools (1.93.1): Extracting archive
  - Installing nativephp/php-bin (1.2.0): Extracting archive
  - Installing nativephp/desktop (dev-fix/symfony-8-compat 3cc8713): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.  

  laravel/boost ............................................................................................................................... DONE
  laravel/mcp ................................................................................................................................. DONE
  laravel/pail ................................................................................................................................ DONE
  laravel/pao ................................................................................................................................. DONE
  laravel/roster .............................................................................................................................. DONE
  laravel/sail ................................................................................................................................ DONE
  laravel/tinker .............................................................................................................................. DONE
  livewire/livewire ........................................................................................................................... DONE
  nativephp/desktop ........................................................................................................................... DONE
  nesbot/carbon ............................................................................................................................... DONE
  nunomaduro/collision ........................................................................................................................ DONE
  nunomaduro/termwind ......................................................................................................................... DONE
  pestphp/pest-plugin-laravel ................................................................................................................. DONE

93 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force

   INFO  No publishable resources for tag [laravel-assets].  

> @php artisan boost:update --ansi
Boost guidelines and skills updated successfully.
No security vulnerability advisories found.

@simonhamp simonhamp merged commit 552cdd7 into main May 29, 2026
52 checks passed
@PeteBishwhip PeteBishwhip deleted the fix/symfony-8-compat branch May 29, 2026 05:02
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