Tests: Constant expression contains invalid operations
Author: barryvdhCreated Mar 5, 2026Updated Mar 5, 2026
Labelsbug
Versions:
- ide-helper Version: dev-master
- Laravel Version: #.#.#
- PHP Version: <8.5
Description:
Because of https://github.com/barryvdh/laravel-ide-helper/pull/1769 the test fail on 8.5.
Can we skip that file on <8.5 or otherwise remove that test?
In ClosureInAttribute.php line 11:
Constant expression contains invalid operations
Fatal error: Premature end of PHP process when running Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\PhpAttributesClosureInAttribute\Test::test.
Script phpunit handling the test-ci event returned with error code 255Steps To Reproduce:
Run test on PHP8.4 or lower.
Source: barryvdh/laravel-ide-helper