Skip to content

Deprecated warning from Laravel\Sanctum\HasApiTokens::createToken() #548

Closed
@shokanshi

Description

@shokanshi

Sanctum Version

4.0,.4

Laravel Version

11.33.2

PHP Version

8.4.1

Database Driver & Version

No response

Description

I am getting this warning running the Laravel app on PHP 8.4.1.

LOG.warning: Laravel\Sanctum\HasApiTokens::createToken(): Implicitly marking parameter $expiresAt as nullable is deprecated, the explicit nullable type must be used instead in ...\vendor\laravel\sanctum\src\HasApiTokens.php on line 49

Steps To Reproduce

Just running the laravel 11.33.2 app on PHP 8.4.1 will get the warning message.

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