Skip to content

A simple incompability with php 8.1 #1284

@AurelienZulian

Description

@AurelienZulian

Hello, i've found an error here :

str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

You'll find the concerned method here : vendor/barryvdh/laravel-debugbar/src/DataCollector/QueryCollector.php

Function name : emulateQuote
Line : 214.

My PHP version is 8.1, this error is due to the recent changes on the acceptance of null values on native PHP methods.

Have a good fix !

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