Overview of the most important changes coming with PHP 7.
We’ve all heard that PHP 7 is fabulous: faster than any previous PHP version and even HHVM, but what do we need to do to make our code compatible with PHP 7 ?
1 ); // must be first line function get_post_type( int $post_id ) { // do something; return $post_type; } try { get_post_type( $post_object ); } catch ( \TypeException $e ) { var_dump( $e ); }