removing more unnecessary casts

This commit is contained in:
Dylan K. Taylor 2020-02-06 19:23:11 +00:00
parent 213bf8366a
commit 25bc95cd1e
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
* @return void
*/
public function setPortCheck($name){
$this->interface->sendOption("portChecking", (bool) $name);
$this->interface->sendOption("portChecking", $name);
}
public function handleOption(string $option, string $value) : void{

View File

@ -95,7 +95,7 @@ class PermissionAttachment{
*/
public function setPermissions(array $permissions){
foreach($permissions as $key => $value){
$this->permissions[$key] = (bool) $value;
$this->permissions[$key] = $value;
}
$this->permissible->recalculatePermissions();
}