@@ -117,29 +117,29 @@ public function testCustomDeprecations(): void
117
117
self ::assertSame ('attribute ' , $ doubleDeprecatedClassOnlyAttributeMessage ->getConstant ('FOO ' )->getDeprecatedDescription ());
118
118
119
119
// properties
120
- self ::assertFalse ($ notDeprecatedClass ->getProperty ('foo ' , $ scopeForNotDeprecatedClass )->isDeprecated ()->yes ());
121
- self ::assertNull ($ notDeprecatedClass ->getProperty ('foo ' , $ scopeForNotDeprecatedClass )->getDeprecatedDescription ());
120
+ self ::assertFalse ($ notDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForNotDeprecatedClass )->isDeprecated ()->yes ());
121
+ self ::assertNull ($ notDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForNotDeprecatedClass )->getDeprecatedDescription ());
122
122
123
- self ::assertTrue ($ attributeDeprecatedClass ->getProperty ('foo ' , $ scopeForDeprecatedClass )->isDeprecated ()->yes ());
124
- self ::assertNull ($ attributeDeprecatedClass ->getProperty ('foo ' , $ scopeForDeprecatedClass )->getDeprecatedDescription ());
123
+ self ::assertTrue ($ attributeDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDeprecatedClass )->isDeprecated ()->yes ());
124
+ self ::assertNull ($ attributeDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDeprecatedClass )->getDeprecatedDescription ());
125
125
126
- self ::assertTrue ($ phpDocDeprecatedClass ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->isDeprecated ()->yes ());
127
- self ::assertNull ($ phpDocDeprecatedClass ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->getDeprecatedDescription ());
126
+ self ::assertTrue ($ phpDocDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->isDeprecated ()->yes ());
127
+ self ::assertNull ($ phpDocDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->getDeprecatedDescription ());
128
128
129
- self ::assertTrue ($ phpDocDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->isDeprecated ()->yes ());
130
- self ::assertSame ('phpdoc ' , $ phpDocDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->getDeprecatedDescription ());
129
+ self ::assertTrue ($ phpDocDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->isDeprecated ()->yes ());
130
+ self ::assertSame ('phpdoc ' , $ phpDocDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->getDeprecatedDescription ());
131
131
132
- self ::assertTrue ($ attributeDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->isDeprecated ()->yes ());
133
- self ::assertSame ('attribute ' , $ attributeDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->getDeprecatedDescription ());
132
+ self ::assertTrue ($ attributeDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->isDeprecated ()->yes ());
133
+ self ::assertSame ('attribute ' , $ attributeDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->getDeprecatedDescription ());
134
134
135
- self ::assertTrue ($ doubleDeprecatedClass ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->isDeprecated ()->yes ());
136
- self ::assertSame ('attribute ' , $ doubleDeprecatedClass ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->getDeprecatedDescription ());
135
+ self ::assertTrue ($ doubleDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->isDeprecated ()->yes ());
136
+ self ::assertSame ('attribute ' , $ doubleDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->getDeprecatedDescription ());
137
137
138
- self ::assertTrue ($ doubleDeprecatedClassOnlyPhpDocMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->isDeprecated ()->yes ());
139
- self ::assertNull ($ doubleDeprecatedClassOnlyPhpDocMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->getDeprecatedDescription ());
138
+ self ::assertTrue ($ doubleDeprecatedClassOnlyPhpDocMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->isDeprecated ()->yes ());
139
+ self ::assertNull ($ doubleDeprecatedClassOnlyPhpDocMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->getDeprecatedDescription ());
140
140
141
- self ::assertTrue ($ doubleDeprecatedClassOnlyAttributeMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->isDeprecated ()->yes ());
142
- self ::assertSame ('attribute ' , $ doubleDeprecatedClassOnlyAttributeMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->getDeprecatedDescription ());
141
+ self ::assertTrue ($ doubleDeprecatedClassOnlyAttributeMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->isDeprecated ()->yes ());
142
+ self ::assertSame ('attribute ' , $ doubleDeprecatedClassOnlyAttributeMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->getDeprecatedDescription ());
143
143
144
144
// methods
145
145
self ::assertFalse ($ notDeprecatedClass ->getMethod ('foo ' , $ scopeForNotDeprecatedClass )->isDeprecated ()->yes ());
0 commit comments