File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,9 +70,8 @@ public function insert(object $entity): object {
7070 $ primaryProperty = $ property ;
7171 $ generatorClass = $ propertyAttributes ->id ->generatorClass ;
7272 if ($ generatorClass ) {
73- $ generator = Server::get ($ generatorClass );
74- /** @psalm-suppress UndefinedClass NC 33 and above */
75- if (class_exists (ISnowflakeGenerator::class) && $ generator instanceof ISnowflakeGenerator) {
73+ if ($ generatorClass === ISnowflakeGenerator::class) {
74+ $ generator = Server::get ($ generatorClass );
7675 $ isSnowflake = true ;
7776 /** @psalm-suppress UndefinedClass */
7877 $ values [$ propertyAttributes ->column ->name ] = $ generator ->nextId ();
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ public function getTagsForObjects(array $objIds): array|false {
165165
166166 #[\Override]
167167 public function getIdsForTag (int |string $ tag ): array |false {
168- $ tagId = false ;
169168 if (is_numeric ($ tag )) {
170169 $ tagId = $ tag ;
171170 } else {
You can’t perform that action at this time.
0 commit comments