Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
omogenot authored Nov 17, 2024
1 parent cefafc6 commit 29d7013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/core/db/DoliDB.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ public function getRows($sql)
* @param string $table_name table name to check
* @return string new table name or original one if no change is required
*/
static public function checkTableName($table_name) {
static public function checkTableName($table_name)
{
return CommonObject::$_deprecated_table_names[$table_name] ?? $table_name;

Check failure on line 458 in htdocs/core/db/DoliDB.class.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

DoliDB.class.php: PhanUndeclaredStaticProperty: Static property '_deprecated_table_names' on \CommonObject is undeclared

Check failure on line 458 in htdocs/core/db/DoliDB.class.php

View workflow job for this annotation

GitHub Actions / phpstan / php-stan (8.2)

Access to an undefined static property CommonObject::$_deprecated_table_names.
}
}

0 comments on commit 29d7013

Please sign in to comment.