Strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated

Description of issue or problem I’m having:
I am trying to install OJS 3 on local host and getting so many errors. like mentioned above

Steps I took leading up to the issue:
When I entered my information and installed i get error
A database error has occurred: SQLSTATE[HY000] [1049] Unknown database ‘ojs2’ (SQL: create table announcement_types (type_id bigint not null auto_increment primary key, assoc_type smallint not null, assoc_id bigint not null) default character set utf8 collate ‘utf8_general_ci’)

What I tried to resolve the issue:
I dont understand where i am doing wrong

Application Version - e.g., OJS 3.1.2:
OJS 3.3.0

Additional information, such as screenshots and error log messages if applicable:

Hi @Sidra_Khan ,
To install OJS you must first have a database, and assign user permissions to it. As I see it is skipping those steps and using the example configuration.

driver = mysqli
host = localhost
username = ojs
password = ojs
name = ojs

name is the name you gave to the database.
username and passowrd is the username and password that have access to that database.

Please check if you are using a database and if you have the necessary permissions.