Skip to content

DBStandardCommand::getTableSize(): Return value must be of type string #48

Closed
@abewartech

Description

@abewartech
php artisan db:audit

  Please Select feature which would you like to do: [SUMMARY]
  STANDARD ................................................................................................................... 0  
  CONSTRAINT ................................................................................................................. 1  
  SUMMARY .................................................................................................................... 2  
  TRACK ...................................................................................................................... 3  
❯ 0
0


   TypeError 

  Vcian\LaravelDBAuditor\Commands\DBStandardCommand::getTableSize(): Return value must be of type string, null returned

  at vendor\vcian\laravel-db-auditor\src\Traits\DBConnection.php:107
    103▕                     ORDER BY
    104▕                         (DATA_LENGTH + INDEX_LENGTH) DESC';
    105▕             $result = DB::select($query);
    106▕             if ($result) {
  ➜ 107▕                 return $result[0]->size;
    108▕             }
    109▕
    110▕         } catch (Exception $exception) {
    111▕             Log::error($exception->getMessage());

  1   vendor\vcian\laravel-db-auditor\src\Traits\Rules.php:31
      Vcian\LaravelDBAuditor\Commands\DBStandardCommand::getTableSize("report_sopbuntut")

  2   vendor\vcian\laravel-db-auditor\src\Commands\DBStandardCommand.php:32
      Vcian\LaravelDBAuditor\Commands\DBStandardCommand::tablesRule()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions