Rigidbody2d not rotating

GameObject bullet = Instantiate(bulletPrefab, firePoint.position, firePoint.rotation);
Rigidbody2D brb = bullet.GetComponent();
brb.AddForce(firePoint.up * bulletForce, ForceMode2D.Impulse);
fireRB.rotation += 45;
The script for my Shoot function. I want the object to shoot, then rotate 45 degrees, but the rotate part does not work. Everything else seems to be working fine, just not the rotate.

Update: The first few times it shoots, it does not rotate, but after shooting 5 or so times, it starts rotating again.

rotation is a matrix - like a vector of 4 components.

Better use: fireRB.gameObject.transform.rotation.eulerAngles

This is a vector and then you have to specify which component of the vector to change. In 2D it should be the Z.
So you have to write:

fireRB.gameObject.transform.rotation.eulerAngles.z = new Vector3(fireRB.gameObject.transform.rotation.eulerAngles.x, fireRB.gameObject.transform.rotation.eulerAngles.y, fireRB.gameObject.gameObject.transform.rotation.eulerAngles.z + 45)

I finished it. I used fireRB.gameObject.Transform.Rotate().