diff --git a/src/Bundle/Grid/AbstractGrid.php b/src/Bundle/Grid/AbstractGrid.php index 6902727a..b5956c27 100644 --- a/src/Bundle/Grid/AbstractGrid.php +++ b/src/Bundle/Grid/AbstractGrid.php @@ -21,7 +21,7 @@ abstract class AbstractGrid implements GridInterface { public static function getName(): string { - if ($attribute = static::getAttributes()) { + if ($attribute = self::getAttributes()) { return $attribute[0]->newInstance()->name; } @@ -30,7 +30,7 @@ public static function getName(): string public function getResourceClass(): string { - if ($attribute = $this->getAttributes()) { + if ($attribute = self::getAttributes()) { return $attribute[0]->newInstance()->resourceClass; } @@ -52,7 +52,7 @@ public function toArray(): array private function createGridBuilder(): GridBuilderInterface { - if ($this instanceof ResourceAwareGridInterface || $this->getAttributes() !== []) { + if ($this instanceof ResourceAwareGridInterface || $this::getAttributes() !== []) { return GridBuilder::create($this::getName(), $this->getResourceClass()); } @@ -60,7 +60,7 @@ private function createGridBuilder(): GridBuilderInterface } /** - * @return \ReflectionAttribute[] + * @return \ReflectionAttribute[] */ private static function getAttributes(): array {