Skip to content

Commit

Permalink
Fix code style and phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoyigi committed Dec 12, 2023
1 parent 2d96686 commit de7cf5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ parameters:
count: 1
path: src/AutomationRules/Actions/AssignToGroup.php

-
message: "#^Class Igniter\\\\Admin\\\\Traits\\\\Assignable not found\\.$#"
count: 1
path: src/AutomationRules/Actions/AssignToGroup.php

-
message: "#^Access to an undefined property Igniter\\\\Flame\\\\Database\\\\Model\\:\\:\\$custom\\.$#"
count: 1
Expand Down Expand Up @@ -121,7 +116,7 @@ parameters:
path: src/Extension.php

-
message: "#^Cannot call method hourly\\(\\) on void\\.$#"
message: "#^Cannot call method hourly\\(\\) on null\\.$#"
count: 2
path: src/Extension.php

Expand Down
4 changes: 2 additions & 2 deletions src/Models/AutomationLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class AutomationLog extends Model
{
use Validation;
use Prunable;
use Validation;

/**
* @var string The database table name
Expand Down Expand Up @@ -46,7 +46,7 @@ class AutomationLog extends Model

protected $appends = ['action_name', 'status_name', 'created_since'];

public static function createLog($rule, string $message, bool $isSuccess, array $params = [], Throwable $exception = null)
public static function createLog($rule, string $message, bool $isSuccess, array $params = [], ?Throwable $exception = null)
{
$record = new static;
if ($rule instanceof RuleAction) {
Expand Down
2 changes: 1 addition & 1 deletion src/Models/AutomationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class AutomationRule extends Model
{
use Validation;
use Purgeable;
use Validation;

/**
* @var string The database table name
Expand Down

0 comments on commit de7cf5b

Please sign in to comment.