Skip to content

Commit

Permalink
Raise the severity of the error when html function parameter are not …
Browse files Browse the repository at this point in the history
…valid #88
  • Loading branch information
markkap committed May 5, 2019
1 parent f655c3d commit 4beabdd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ trait Html_Parameter_Validation {
public function html( int $width, int $height ) : string {

if ( $width < 1 ) {
trigger_error( 'width has to have a positive value ' . $width . ' was given', E_USER_NOTICE );
trigger_error( 'width has to have a positive value ' . $width . ' was given', E_USER_WARNING );
return '';
}

if ( $height < 1 ) {
trigger_error( 'height has to have a positive value ' . $height . ' was given', E_USER_NOTICE );
trigger_error( 'height has to have a positive value ' . $height . ' was given', E_USER_WARNING );
return '';
}

Expand Down

0 comments on commit 4beabdd

Please sign in to comment.