Skip to content

Expected type 'mysqli'. Found 'null'. #4

@Alexander-R-Z

Description

@Alexander-R-Z

Hey, I thought I had an error (Expected type 'mysqli'. Found 'null'.) in the code but it only shows the error because I haven't called the connection yet and no data was passed through, which is why "$this->connect = null;" was still null.

Here is a picture of the supposed error.

image

I hope this helps beginners like me when looking for the error.

If you don't know it yet and if it's still free for you, you should make an account at ChatGPT, where you can ask for all the bugs and he (the chat bot) can explain them to you detailed in real time.

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