@@ -69,49 +69,47 @@ public function testWillSkipReadingPropertiesFromNullEmbeddable(
69
69
}
70
70
71
71
/**
72
- * Data provider
73
- *
74
72
* @return ReflectionProperty[][]|string[][]
75
73
*/
76
- public function getTestedReflectionProperties (): array
74
+ public static function getTestedReflectionProperties (): array
77
75
{
78
76
return [
79
77
[
80
- $ this -> getReflectionProperty (BooleanModel::class, 'id ' ),
81
- $ this -> getReflectionProperty (BooleanModel::class, 'id ' ),
78
+ self :: getReflectionProperty (BooleanModel::class, 'id ' ),
79
+ self :: getReflectionProperty (BooleanModel::class, 'id ' ),
82
80
BooleanModel::class,
83
81
],
84
82
// reflection on embeddables that have properties defined in abstract ancestors:
85
83
[
86
- $ this -> getReflectionProperty (BooleanModel::class, 'id ' ),
87
- $ this -> getReflectionProperty (AbstractEmbeddable::class, 'propertyInAbstractClass ' ),
84
+ self :: getReflectionProperty (BooleanModel::class, 'id ' ),
85
+ self :: getReflectionProperty (AbstractEmbeddable::class, 'propertyInAbstractClass ' ),
88
86
ConcreteEmbeddable::class,
89
87
],
90
88
[
91
- $ this -> getReflectionProperty (BooleanModel::class, 'id ' ),
92
- $ this -> getReflectionProperty (ConcreteEmbeddable::class, 'propertyInConcreteClass ' ),
89
+ self :: getReflectionProperty (BooleanModel::class, 'id ' ),
90
+ self :: getReflectionProperty (ConcreteEmbeddable::class, 'propertyInConcreteClass ' ),
93
91
ConcreteEmbeddable::class,
94
92
],
95
93
// reflection on classes extending internal PHP classes:
96
94
[
97
- $ this -> getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
98
- $ this -> getReflectionProperty (ArrayObjectExtendingClass::class, 'privateProperty ' ),
95
+ self :: getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
96
+ self :: getReflectionProperty (ArrayObjectExtendingClass::class, 'privateProperty ' ),
99
97
ArrayObjectExtendingClass::class,
100
98
],
101
99
[
102
- $ this -> getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
103
- $ this -> getReflectionProperty (ArrayObjectExtendingClass::class, 'protectedProperty ' ),
100
+ self :: getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
101
+ self :: getReflectionProperty (ArrayObjectExtendingClass::class, 'protectedProperty ' ),
104
102
ArrayObjectExtendingClass::class,
105
103
],
106
104
[
107
- $ this -> getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
108
- $ this -> getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
105
+ self :: getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
106
+ self :: getReflectionProperty (ArrayObjectExtendingClass::class, 'publicProperty ' ),
109
107
ArrayObjectExtendingClass::class,
110
108
],
111
109
];
112
110
}
113
111
114
- private function getReflectionProperty (string $ className , string $ propertyName ): ReflectionProperty
112
+ private static function getReflectionProperty (string $ className , string $ propertyName ): ReflectionProperty
115
113
{
116
114
$ reflectionProperty = new ReflectionProperty ($ className , $ propertyName );
117
115
0 commit comments