The third parameter should be an array type in the password_has() function.
You are passing the Null value in the third parameter. Change it like this -
This is totally wrong way to convert simple text to the hash pattern in PHP -
password_hash('hello123', '2y', NULL)
Change above code like this -
$arr = array("cost"=>4);
password_hash('hello123','PASSWORD_BCRYPT',$arr)
This is the solution of your error Uncaught TypeError: password_hash(): Argument #3 ($options) must be of type array, null given .