diff --git a/src/Internal/Processor.php b/src/Internal/Processor.php index b637c6f..ee3b2aa 100644 --- a/src/Internal/Processor.php +++ b/src/Internal/Processor.php @@ -1405,7 +1405,7 @@ private function parsePayload(string $packet): void $this->sendHandshake(); break; case "caching_sha2_password": - switch (\ord(substr($packet, 1, 1))) { + switch (\ord(\substr($packet, 1, 1))) { case 3: // success return; // expecting OK afterwards case 4: // fast auth failure @@ -1416,7 +1416,7 @@ private function parsePayload(string $packet): void } break; case 0x2d: // certificate - $pubkey = substr($packet, 1); + $pubkey = \substr($packet, 1); $this->write($this->sha256Auth($this->config->getPassword(), $this->authPluginData, $pubkey)); break; } @@ -1558,7 +1558,7 @@ private function sendHandshake(bool $inSSL = false): void $auth = "\x01"; } } - break; + break; case "caching_sha2_password": $auth = $this->sha2Auth($this->config->getPassword(), $this->authPluginData); break;