original_string: private function supports(string $class): bool
      {
          $class = new \ReflectionClass($class);
  
          // We look for at least one non-static property
          do {
              foreach ($class->getProperties() as $property) {
                  if (!$property->isStatic()) {
                      return true;
                  }
              }
          } while ($class = $class->getParentClass());
  
          return false;
      }
code: private function supports(string $class): bool
      {
          $class = new \ReflectionClass($class);
  
          // We look for at least one non-static property
          do {
              foreach ($class->getProperties() as $property) {
                  if (!$property->isStatic()) {
                      return true;
                  }
              }
          } while ($class = $class->getParentClass());
  
          return false;
      }
code_tokens: private function supports ( string $ class ) : bool { $ class = new \ ReflectionClass ( $ class ) ; // We look for at least one non-static property do { foreach ( $ class -> getProperties ( ) as $ property ) { if ( ! $ property -> isStatic ( ) ) { return true ; } } } while ( $ class = $ class -> getParentClass ( ) ) ; return false ; }
docstring: Checks if the given class has any non-static property.
docstring_tokens: Checks if the given class has any non - static property .