Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

Declaration of Techouse\\SelectAutoComplete\\SelectAutoComplete::placeholder(string $placeholer) should be compatible with Laravel\\Nova\\Fields\\Field::placeholder($text) #20

@PaulLawton227

Description

@PaulLawton227

select auto complete: v1.3.6
nova: 3.15.0
laravel: v8.15.0

This code below used to work on older versions, but we have recently upgraded to all the latest versions of laravel/nova/ etc.

I now get this error:

Declaration of Techouse\\SelectAutoComplete\\SelectAutoComplete::placeholder(string $placeholer) should be compatible with Laravel\\Nova\\Fields\\Field::placeholder($text)

when running the following code:

 Select::make(__('Customer'), 'customer_id')
                ->options(\App\Customer::all()->mapWithKeys(function ($customer) {
                    return [$customer->id => $customer->first_name . ' ' . $customer->last_name . " (" . $customer->email . ")"];
                }))
                ->displayUsingLabels()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions