• Resolved numeric

    (@numeric)


    Error in [15-Apr-2024 05:01:36 UTC] PHP Fatal error: Cannot use ::class with dynamic class name in httpdocs/wp-content/plugins/wp-stateless/lib/classes/batch/class-batch-task-manager.php on line 233

    Change in

    try {
          $object = $this->_get_batch_task_object();
          $class = get_class($object);   
          $batch = $object->get_batch();
    
          if ( !empty($batch) ) {
            $this->_add_batch( $batch );
            $this->_update_state( $object->get_state() );
    
            $this->dispatch();
    
            return;
          }
    
          Helper::log( 'Batch task completed: ' . $class );
        } catch (\Throwable $e) {
          Helper::log( "Unable to process next batch: " . $e->getMessage() );
        }

    Please update, my PHP is 8.1.27.

    regards

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot use ::class with dynamic class name’ is closed to new replies.