Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jan 23, 2024
1 parent e2a5a2e commit 8ffc6c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/GaletteAuto/PluginGaletteAuto.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static function getDashboardsContents(): array
*
* @param Adherent $member Member instance
*
* @return array<string, string|array>
* @return array<string, string|array<string,mixed>>
*/
public static function getListActionsContents(Adherent $member): array
{
Expand Down
2 changes: 0 additions & 2 deletions lib/GaletteAuto/Repository/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public function getList($brandId = null, $as_object = true): array|ResultSet
$models = array();
foreach ($results as $r) {
$pk = self::PK;
//@phpstan-ignore-next-line
$models[$r->$pk] = new Model($this->zdb, $r);
}
return $models;
Expand Down Expand Up @@ -191,7 +190,6 @@ private function proceedCount(Select $select): void
$result = $results->current();

$k = self::PK;
//@phpstan-ignore-next-line
$this->count = $result->$k;

if ($this->count > 0) {
Expand Down

0 comments on commit 8ffc6c9

Please sign in to comment.