Skip to content

Commit

Permalink
fix reported phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jan 10, 2025
1 parent 139c42e commit aa63594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/app_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ protected function parse_dimensions_from_filename( $src ) {
}
} else {
$optimized_args = $this->parse_dimension_from_optimized_url( $src );
if ( $optimized_args[0] !== 'auto' && $optimized_args[1] !== 'auto' ) {
if ( $optimized_args[0] !== 'auto' || $optimized_args[1] !== 'auto' ) {
return [
$optimized_args[0] !== 'auto' ? (int) $optimized_args[0] : false,
$optimized_args[1] !== 'auto' ? (int) $optimized_args[1] : false,
Expand Down

0 comments on commit aa63594

Please sign in to comment.