Skip to content

Commit 82941a9

Browse files
authored
chore: Bump analyzer version to ^4.3.0 to remove the usage of deprecated feature (#9214)
1 parent f2d791a commit 82941a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cloud_firestore_odm/cloud_firestore_odm_generator/lib/src/validator_generator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bool isValidatorAnnotation(ElementAnnotation annotation) {
3636
final element = annotation.element;
3737
if (element == null || element is! ConstructorElement) return false;
3838

39-
return element.enclosingElement.allSupertypes.any((superType) {
39+
return element.enclosingElement2.allSupertypes.any((superType) {
4040
return superType.element.name == 'Validator' &&
4141
superType.element.librarySource.uri.toString() ==
4242
'package:cloud_firestore_odm/src/validator.dart';

packages/cloud_firestore_odm/cloud_firestore_odm_generator/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
sdk: ">=2.16.0 <3.0.0"
99

1010
dependencies:
11-
analyzer: ">=2.0.0 <5.0.0"
11+
analyzer: ^4.3.0
1212
build: ^2.0.1
1313
build_config: ^1.0.0
1414
cloud_firestore_odm: ^1.0.0-dev.23

0 commit comments

Comments
 (0)