Update class-post-type.php

Fix notice non-static method