Skip to content

Commit

Permalink
fix: more types replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
gurucomkz committed Jan 22, 2025
1 parent 01a59f1 commit 0b8d369
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ActionsGridFieldItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use ReflectionObject;
use SilverStripe\Admin\ModelAdmin;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataObjectInterface;
use SilverStripe\View\ViewableData;

/**
Expand Down Expand Up @@ -536,10 +535,10 @@ public function getPublicEditLinkForAdjacentRecord(int $offset): ?string

/**
* @param FieldList $actions
* @param DataObjectInterface $record
* @param ViewableData $record
* @return void
*/
public function addSaveAndClose(FieldList $actions, DataObjectInterface $record)
public function addSaveAndClose(FieldList $actions, ViewableData $record)
{
if (!$this->checkCan($record)) {
return;
Expand Down Expand Up @@ -567,10 +566,10 @@ public function addSaveAndClose(FieldList $actions, DataObjectInterface $record)
/**
* New and existing records have different classes
*
* @param DataObjectInterface $record
* @param ViewableData $record
* @return string
*/
protected function getBtnClassForRecord(DataObjectInterface $record)
protected function getBtnClassForRecord(ViewableData $record)
{
if ($record->ID) {
return 'btn-outline-primary';
Expand Down

0 comments on commit 0b8d369

Please sign in to comment.