Skip to content

Commit aa63594

Browse files
committed
fix reported phpstan issues
1 parent 139c42e commit aa63594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/app_replacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ protected function parse_dimensions_from_filename( $src ) {
614614
}
615615
} else {
616616
$optimized_args = $this->parse_dimension_from_optimized_url( $src );
617-
if ( $optimized_args[0] !== 'auto' && $optimized_args[1] !== 'auto' ) {
617+
if ( $optimized_args[0] !== 'auto' || $optimized_args[1] !== 'auto' ) {
618618
return [
619619
$optimized_args[0] !== 'auto' ? (int) $optimized_args[0] : false,
620620
$optimized_args[1] !== 'auto' ? (int) $optimized_args[1] : false,

0 commit comments

Comments
 (0)