: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Yoast\WP\SEO\Values\Robots;
* @var array All paths affected by this directive.
public function __construct() {
* Adds a path to the directive path list.
* @param string $path A path to add in the path list.
public function add_path( $path ) {
if ( ! \in_array( $path, $this->paths, true ) ) {
public function get_paths() {