Skip to content

Commit

Permalink
Suppress psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Jun 25, 2021
1 parent 6bf3fda commit 6e1a418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/Inputs/DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function jsonOptions(): string

private function resolveIcons(): void
{
/** @psalm-suppress RedundantCondition */
$this->toggleIcon = is_null($this->toggleIcon) && $this->toggleIcon !== false
? config('form-components.components.date-picker.icon')
: $this->toggleIcon;
Expand Down
3 changes: 3 additions & 0 deletions src/FormComponentsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ private function bootDirectives(): void
});
}

/**
* @psalm-suppress UndefinedMethod
*/
private function bootMacros(): void
{
ComponentAttributeBag::macro('hasStartsWith', function ($key) {
Expand Down

0 comments on commit 6e1a418

Please sign in to comment.