laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.78k stars 296 forks source link

Termwind\render(): Argument #2 ($options) must be of type int, null given #918

Closed dominikhalvonik closed 4 months ago

dominikhalvonik commented 5 months ago

Laravel Version

10.48.14

PHP Version

8.2.2

Database Driver & Version

Mysql 8.0.31

Description

After starting Openswoole server via php artisan command everything is fine. But after first HTTP request is received, the following error displays in console:

In Functions.php line 39:
Termwind\render(): Argument laravel/framework#2 ($options) must be of type int, null given,
called in /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Vie
w/Components/Component.php on line 52

The versions of Laravel and Octaine are 10.48.14 and 2.5.0. After moving back to 10.48.12 and 2.4.0 all works fine. The issue is probably in Laravel it self not in Octaine based on the error log but wanted to give full picture.

Steps To Reproduce

  1. Download Laravel 10.48.14
  2. Add Octane 2.5.0
  3. Start application via php artisan octane:start --server=swoole --host=0.0.0.0 --port=9000
  4. Execute HTTP request
crynobone commented 5 months ago

Octane 2.5.0 introduce usage of Termwind via #917 instead of Symfony output.