Use PHPUnit static assertions

Hey @taylorotwell, here you go! This is now moved to `master`.