Skip to content

FatalError installing on Laravel 10.x #100

@giovanniledda

Description

@giovanniledda

Laravel Package Version

10.48.29

Laravel Version

10.48.29

PHP Version

8.3.20

System Info

MacOS 14.6.1 (23G93)

Description

After "php artisan boost:install" I can choose both IDE and Agent (Cursor for both).
Then, after the second prompt I got this error:

`Symfony\Component\ErrorHandler\Error\FatalError

Declaration of App\Core\Adapters\Util::putIf($cond, $value, string $alt = '') must be compatible with App\Core\Util::putIf($cond, $value, $alt = '')

at app/Core/Adapters/Util.php:17
13▕ * Print the value if the condition met
14▕ *
15▕ * @return false|string
16▕ */
➜ 17▕ public static function putIf($cond, $value, string $alt = '')
18▕ {
19▕ ob_start();
20▕
21▕ // Call the function from core Util

Whoops\Exception\ErrorException

Declaration of App\Core\Adapters\Util::putIf($cond, $value, string $alt = '') must be compatible with App\Core\Util::putIf($cond, $value, $alt = '')

at app/Core/Adapters/Util.php:17
13▕ * Print the value if the condition met
14▕ *
15▕ * @return false|string
16▕ */
➜ 17▕ public static function putIf($cond, $value, string $alt = '')
18▕ {
19▕ ob_start();
20▕
21▕ // Call the function from core Util

  +1 vendor frames

2 [internal]:0
Whoops\Run::handleShutdown()`

Steps To Reproduce

  • install the package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions