Skip to content

Commit

Permalink
use strong return type
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Jun 25, 2023
1 parent 41dc93c commit 43aecdb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/AssetControlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,7 @@ protected function addAssetsFromRecord(AssetManipulationList $manipulation, Data
}
}

/**
* Check if the owner has assets
*
* @return bool
*/
private function hasAssets()
private function hasAssets(): bool
{
$fields = DataObject::getSchema()->fieldSpecs($this->owner);
foreach ($fields as $field => $db) {
Expand Down

0 comments on commit 43aecdb

Please sign in to comment.