From e55508a22eac305e15961d7b060c7e32103387da Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Fri, 19 Jul 2024 00:16:57 +0700 Subject: [PATCH] privatization --- packages/collections-orm/src/AbstractMinimalRepository.php | 2 +- packages/collections-orm/src/AbstractRepository.php | 2 +- rector.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/collections-orm/src/AbstractMinimalRepository.php b/packages/collections-orm/src/AbstractMinimalRepository.php index 6db8bab..59962c8 100644 --- a/packages/collections-orm/src/AbstractMinimalRepository.php +++ b/packages/collections-orm/src/AbstractMinimalRepository.php @@ -81,7 +81,7 @@ public function __construct( // set index by $identifiers = $this->getEntityManager() - ->getClassMetadata($this->getClass()) + ->getClassMetadata($this->class) ->getIdentifier(); if (\count($identifiers) !== 1) { diff --git a/packages/collections-orm/src/AbstractRepository.php b/packages/collections-orm/src/AbstractRepository.php index aeb1b56..0ee19df 100644 --- a/packages/collections-orm/src/AbstractRepository.php +++ b/packages/collections-orm/src/AbstractRepository.php @@ -93,7 +93,7 @@ public function __construct( // set index by $identifiers = $this->getEntityManager() - ->getClassMetadata($this->getClass()) + ->getClassMetadata($this->class) ->getIdentifier(); if (\count($identifiers) !== 1) { diff --git a/rector.php b/rector.php index 4bd9fc4..dea2a28 100644 --- a/rector.php +++ b/rector.php @@ -33,7 +33,7 @@ codeQuality: true, codingStyle: true, typeDeclarations: true, - // privatization: true, + privatization: true, // instanceOf: true, // strictBooleans: true, // symfonyCodeQuality: true,