Fix PHPStan errors for Email editor PHP package unit test folder

MAILPOET-6318
This commit is contained in:
Oluwaseun Olorunsola
2024-11-22 15:36:51 +01:00
committed by Jan Lysý
parent bb71448c53
commit a4ad960492
9 changed files with 19 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ if ( ! function_exists( 'esc_attr' ) ) {
* Mock esc_attr function.
*
* @param string $attr Attribute to escape.
* @return string
*/
function esc_attr( $attr ) {
return $attr;
@@ -27,6 +28,7 @@ if ( ! function_exists( 'esc_html' ) ) {
* Mock esc_html function.
*
* @param string $text Text to escape.
* @return string
*/
function esc_html( $text ) {
return $text;