Coding Standards: Use strict comparison in `wp-includes/pomo/streams.php`.

Follow-up to [10584], [11626], [12174].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.
Built from https://develop.svn.wordpress.org/trunk@55934


git-svn-id: http://core.svn.wordpress.org/trunk@55446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-06-18 12:55:21 +00:00
parent 07fa311aff
commit 7eac6728cf
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ if ( ! class_exists( 'POMO_Reader', false ) ) :
*/
public function readint32() {
$bytes = $this->read( 4 );
if ( 4 != $this->strlen( $bytes ) ) {
if ( 4 !== $this->strlen( $bytes ) ) {
return false;
}
$endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V';
@ -77,7 +77,7 @@ if ( ! class_exists( 'POMO_Reader', false ) ) :
*/
public function readint32array( $count ) {
$bytes = $this->read( 4 * $count );
if ( 4 * $count != $this->strlen( $bytes ) ) {
if ( 4 * $count !== $this->strlen( $bytes ) ) {
return false;
}
$endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V';
@ -194,7 +194,7 @@ if ( ! class_exists( 'POMO_FileReader', false ) ) :
* @return bool
*/
public function seekto( $pos ) {
if ( -1 == fseek( $this->_f, $pos, SEEK_SET ) ) {
if ( -1 === fseek( $this->_f, $pos, SEEK_SET ) ) {
return false;
}
$this->_pos = $pos;

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.3-alpha-55933';
$wp_version = '6.3-alpha-55934';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.