Update PHPStan

This commit is contained in:
Dylan K. Taylor
2025-02-17 17:51:39 +00:00
parent 34f801ee3c
commit 77be5f8e25
6 changed files with 22 additions and 58 deletions

View File

@ -699,7 +699,7 @@ class Server{
public function removeOp(string $name) : void{
$lowercaseName = strtolower($name);
foreach($this->operators->getAll() as $operatorName => $_){
foreach(Utils::promoteKeys($this->operators->getAll()) as $operatorName => $_){
$operatorName = (string) $operatorName;
if($lowercaseName === strtolower($operatorName)){
$this->operators->remove($operatorName);