Skip to content

Commit 13f0be9

Browse files
authored
Drop polyfill for old versions
1 parent 4571d4f commit 13f0be9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Processor.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,7 @@ protected function pivotField($row, $column, $accessor)
7878
*/
7979
protected function pivotAccessor()
8080
{
81-
return method_exists($this->builder, 'getPivotAccessor')
82-
? $this->builder->getPivotAccessor()
83-
: (function () {
84-
/** @var mixed $builder */
85-
$builder = $this;
86-
return $builder->accessor;
87-
})->call($this->builder, $this->builder);
81+
return $this->builder->getPivotAccessor();
8882
}
8983

9084
/**

0 commit comments

Comments
 (0)