• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 699f00eccd04c69d4c66a6bfbcb12011766b1971

19 Feb 2026 01:23PM UTC coverage: 53.836%. First build
699f00eccd04c69d4c66a6bfbcb12011766b1971

Pull #22972

github

leonidasmi
Merge branch 'trunk' into feature/task-list-phase-2
Pull Request #22972: Task List Phase 2

8956 of 16525 branches covered (54.2%)

Branch coverage included in aggregate %.

420 of 609 new or added lines in 46 files covered. (68.97%)

34191 of 63621 relevant lines covered (53.74%)

47025.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/task-list/domain/exceptions/incorrect-child-task-usage-exception.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
4
namespace Yoast\WP\SEO\Task_List\Domain\Exceptions;
5

6
use Exception;
7

8
/**
9
 * Exception for incorrect child task usage.
10
 */
11
class Incorrect_Child_Task_Usage_Exception extends Exception {
12

13
        /**
14
         * Constructor of the exception.
15
         *
16
         * @param string|null $task_identifier The identifier of the task that caused the exception.
17
         */
NEW
18
        public function __construct( $task_identifier = null ) {
×
NEW
19
                $message = 'Used child task incorrectly. Child tasks should not be added to the Tasks Collector directly, as they are meant to be used within the context of their parent task.';
×
NEW
20
                if ( $task_identifier !== null ) {
×
NEW
21
                        $message .= ' Offending task: ' . $task_identifier;
×
22
                }
23

NEW
24
                parent::__construct( $message, 400 );
×
25
        }
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc