Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../src/exceptio...
File: forbidden-property-mutation-exception.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Exceptions;
[2] Fix | Delete
[3] Fix | Delete
use RuntimeException;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Exception for attempting a mutation on properties that are made readonly through magic getters and setters.
[7] Fix | Delete
*/
[8] Fix | Delete
class Forbidden_Property_Mutation_Exception extends RuntimeException {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Creates a Forbidden_Property_Mutation_Exception exception when an attempt is made
[12] Fix | Delete
* to assign a value to an immutable property.
[13] Fix | Delete
*
[14] Fix | Delete
* @param string $property_name The name of the immutable property.
[15] Fix | Delete
*
[16] Fix | Delete
* @return Forbidden_Property_Mutation_Exception The exception.
[17] Fix | Delete
*/
[18] Fix | Delete
public static function cannot_set_because_property_is_immutable( $property_name ) {
[19] Fix | Delete
return new self( \sprintf( 'Setting property $%s is not supported.', $property_name ) );
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Creates a Forbidden_Property_Mutation_Exception exception when an attempt is made to unset an immutable property.
[24] Fix | Delete
*
[25] Fix | Delete
* @param string $property_name The name of the immutable property.
[26] Fix | Delete
*
[27] Fix | Delete
* @return Forbidden_Property_Mutation_Exception The exception.
[28] Fix | Delete
*/
[29] Fix | Delete
public static function cannot_unset_because_property_is_immutable( $property_name ) {
[30] Fix | Delete
return new self( \sprintf( 'Unsetting property $%s is not supported.', $property_name ) );
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function