Data types w/ WordPress Themes

Question

So I am building out a theme and I am using PHPStorm, which has function/method data types..

Example:

public function hello(): string 
{
    // Test
}

Since I know most people might not be running PHP 7.3+, what version do you guys base your theme development on? What are the best practices to ensure there aren’t debug errors for users using my theme?

0
DevSem 4 weeks 0 Answers 4 views 0

Leave an answer