After upgrading PHP 7.3.5 to 7.4, we got this error:
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'TaxonomyLocale' not found in /tmp/sage-cache/tempfile.php
This is caused by calling a function from a class extends Controller in the blade template /resources/views/taxonomy-locale.blade.php
Code below:
<div class="location-wrap {{ TaxonomyLocale::featured_class($i, $num, $mod) }}">
TaxonomyLocale class is declared in ‘app/controllers/taxonomy-locale.php’:
<?php
namespace App;
use Sober\Controller\Controller;
use WP_Query;
class TaxonomyLocale extends Controller
{...
public static function featured_class($count, $total, $mod) {..}
...}
If anyone could help, I would appreciate it very much.