diff --git a/VERSION b/VERSION index 358bffc..b0663eb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2301.11859 +0.2301.11953 diff --git a/src/AString.php b/src/AString.php index 1b83c4d..9d9661e 100644 --- a/src/AString.php +++ b/src/AString.php @@ -1,7 +1,7 @@ toAString(); - return new AString(strval($value)); + return new AString((string)$value); } } diff --git a/src/Data/MariaDB/MariaDBResult.php b/src/Data/MariaDB/MariaDBResult.php index 590c23c..04227cf 100644 --- a/src/Data/MariaDB/MariaDBResult.php +++ b/src/Data/MariaDB/MariaDBResult.php @@ -70,7 +70,7 @@ abstract class MariaDBResult implements IDbResult { } public function getString(int|string $index): string { - return strval($this->getValue($index)); + return (string)$this->getValue($index); } public function getAString(int|string $index): AString { diff --git a/src/Data/MariaDB/MariaDBStatement.php b/src/Data/MariaDB/MariaDBStatement.php index 8d0cb33..1bf981d 100644 --- a/src/Data/MariaDB/MariaDBStatement.php +++ b/src/Data/MariaDB/MariaDBStatement.php @@ -1,7 +1,7 @@ statement->send_long_data($key, $data); } else - $this->statement->send_long_data($key, strval($value)); + $this->statement->send_long_data($key, (string)$value); $value = null; } diff --git a/src/Data/SQLite/SQLiteResult.php b/src/Data/SQLite/SQLiteResult.php index 2ff7584..2e36fd7 100644 --- a/src/Data/SQLite/SQLiteResult.php +++ b/src/Data/SQLite/SQLiteResult.php @@ -56,7 +56,7 @@ class SQLiteResult implements IDbResult { } public function getString(int|string $index): string { - return strval($this->getValue($index)); + return (string)$this->getValue($index); } public function getAString(int|string $index): AString { diff --git a/src/Serialisation/BencodeSerialiser.php b/src/Serialisation/BencodeSerialiser.php index 72076ba..281192a 100644 --- a/src/Serialisation/BencodeSerialiser.php +++ b/src/Serialisation/BencodeSerialiser.php @@ -53,7 +53,7 @@ class BencodeSerialiser extends Serialiser { } else { $output = 'd'; foreach($input as $key => $value) { - $output .= self::encode(strval($key), $depth - 1); + $output .= self::encode((string)$key, $depth - 1); $output .= self::encode($value, $depth - 1); } } @@ -68,7 +68,7 @@ class BencodeSerialiser extends Serialiser { $output = 'd'; foreach($input as $key => $value) { - $output .= self::encode(strval($key), $depth - 1); + $output .= self::encode((string)$key, $depth - 1); $output .= self::encode($value, $depth - 1); }