The current brew version is 4.4. It should be updated to 4.5.
I believe this is done from here, but I'm not really sure.