What potential issues can arise when upgrading from PHP 5.x to 7.3 in custom Wordpress themes?

One potential issue when upgrading from PHP 5.x to 7.3 in custom WordPress themes is deprecated functions or syntax that may cause errors or warnings. To solve this, you will need to update your code to use the latest PHP syntax and functions supported by PHP 7.3.

// Before PHP 7.3
$my_array = array('one', 'two', 'three');

// After PHP 7.3
$my_array = ['one', 'two', 'three'];