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
2 years
2020-12-24T21:10:20-05:00
2020-12-24T21:10:20-05:00 0 Answers
4 views
0
Leave an answer