Why does Visual Studio Code continue to indent after a }?

i got a strange issue,
i frequently have to used the auto indent on VS but when i’m in php, it seems to act strange when i’m coding classes, (thats really annoying cause im at 8 indent now at the start of a class[enter image description here])
enter image description here

i’m explaining :

normal indent :

class 1{
   setting
   setting
   function(){
      setting
   }
}
class 2{
   setting
...
}

what i am having:

class 1{
   setting
   }
   class 2
      setting
      }
      class 3{
         setting
        }