PHP Fatal error: Cannot redeclare __() (previously declared in /vendor/magento/framework/Phrase/__.php:15) in /app/functions.php on line 23

Hello I am facing the issue after upgrade from 2.2.6 to 2.3.0 Can you suggest what is needed to be modified?

  1. file __.php :

<?php  declare(strict_types=1);  function __() {   $  argc = func_get_args();    $  text = array_shift($  argc); if (!empty($  argc) && is_array($  argc[0])) {     $  argc = $  argc[0]; }  return new \Magento\Framework\Phrase($  text, $  argc); } 

2.file – functions.php:

$  text = array_shift($  argc); if (!empty($  argc) && is_array($  argc[0])) {     $  argc = $  argc[0]; }  return new \Magento\Framework\Phrase($  text, $  argc); }