Revert "fixed main.php type error"

This reverts commit 1c3bd808d634ab8f7568e1539d7aec9bdedbc6d9.