Open aik099 opened 5 years ago
Hi,
I'm using following spatch file:
-X === null || X === '' +empty(X)
for a:
<?php if ( $value === null || $value === '' ) { echo 'something'; }
code.
The replacement result is however:
<?php if ( $value === '' ) { echo 'something'; }
instead of
<?php if ( empty($value) ) { echo 'something'; }
Not sure why it's not working. When using sgrep I was able to find that code, but spatch replaces is in non-expected way.
sgrep
spatch
Thanks.
Hi,
I'm using following spatch file:
for a:
code.
The replacement result is however:
instead of
Not sure why it's not working. When using
sgrep
I was able to find that code, butspatch
replaces is in non-expected way.Thanks.