@@ -110,29 +110,29 @@ public function testCustomDeprecations(): void
110110 self ::assertSame ('attribute ' , $ doubleDeprecatedClassOnlyAttributeMessage ->getConstant ('FOO ' )->getDeprecatedDescription ());
111111
112112 // properties
113- self ::assertFalse ($ notDeprecatedClass ->getProperty ('foo ' , $ scopeForNotDeprecatedClass )->isDeprecated ()->yes ());
114- self ::assertNull ($ notDeprecatedClass ->getProperty ('foo ' , $ scopeForNotDeprecatedClass )->getDeprecatedDescription ());
113+ self ::assertFalse ($ notDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForNotDeprecatedClass )->isDeprecated ()->yes ());
114+ self ::assertNull ($ notDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForNotDeprecatedClass )->getDeprecatedDescription ());
115115
116- self ::assertTrue ($ attributeDeprecatedClass ->getProperty ('foo ' , $ scopeForDeprecatedClass )->isDeprecated ()->yes ());
117- self ::assertNull ($ attributeDeprecatedClass ->getProperty ('foo ' , $ scopeForDeprecatedClass )->getDeprecatedDescription ());
116+ self ::assertTrue ($ attributeDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDeprecatedClass )->isDeprecated ()->yes ());
117+ self ::assertNull ($ attributeDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDeprecatedClass )->getDeprecatedDescription ());
118118
119- self ::assertTrue ($ phpDocDeprecatedClass ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->isDeprecated ()->yes ());
120- self ::assertNull ($ phpDocDeprecatedClass ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->getDeprecatedDescription ());
119+ self ::assertTrue ($ phpDocDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->isDeprecated ()->yes ());
120+ self ::assertNull ($ phpDocDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClass )->getDeprecatedDescription ());
121121
122- self ::assertTrue ($ phpDocDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->isDeprecated ()->yes ());
123- self ::assertSame ('phpdoc ' , $ phpDocDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->getDeprecatedDescription ());
122+ self ::assertTrue ($ phpDocDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->isDeprecated ()->yes ());
123+ self ::assertSame ('phpdoc ' , $ phpDocDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForPhpDocDeprecatedClassWithMessages )->getDeprecatedDescription ());
124124
125- self ::assertTrue ($ attributeDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->isDeprecated ()->yes ());
126- self ::assertSame ('attribute ' , $ attributeDeprecatedClassWithMessages ->getProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->getDeprecatedDescription ());
125+ self ::assertTrue ($ attributeDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->isDeprecated ()->yes ());
126+ self ::assertSame ('attribute ' , $ attributeDeprecatedClassWithMessages ->getInstanceProperty ('foo ' , $ scopeForAttributeDeprecatedClassWithMessages )->getDeprecatedDescription ());
127127
128- self ::assertTrue ($ doubleDeprecatedClass ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->isDeprecated ()->yes ());
129- self ::assertSame ('attribute ' , $ doubleDeprecatedClass ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->getDeprecatedDescription ());
128+ self ::assertTrue ($ doubleDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->isDeprecated ()->yes ());
129+ self ::assertSame ('attribute ' , $ doubleDeprecatedClass ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClass )->getDeprecatedDescription ());
130130
131- self ::assertTrue ($ doubleDeprecatedClassOnlyPhpDocMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->isDeprecated ()->yes ());
132- self ::assertNull ($ doubleDeprecatedClassOnlyPhpDocMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->getDeprecatedDescription ());
131+ self ::assertTrue ($ doubleDeprecatedClassOnlyPhpDocMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->isDeprecated ()->yes ());
132+ self ::assertNull ($ doubleDeprecatedClassOnlyPhpDocMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyNativeMessage )->getDeprecatedDescription ());
133133
134- self ::assertTrue ($ doubleDeprecatedClassOnlyAttributeMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->isDeprecated ()->yes ());
135- self ::assertSame ('attribute ' , $ doubleDeprecatedClassOnlyAttributeMessage ->getProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->getDeprecatedDescription ());
134+ self ::assertTrue ($ doubleDeprecatedClassOnlyAttributeMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->isDeprecated ()->yes ());
135+ self ::assertSame ('attribute ' , $ doubleDeprecatedClassOnlyAttributeMessage ->getInstanceProperty ('foo ' , $ scopeForDoubleDeprecatedClassOnlyCustomMessage )->getDeprecatedDescription ());
136136
137137 // methods
138138 self ::assertFalse ($ notDeprecatedClass ->getMethod ('foo ' , $ scopeForNotDeprecatedClass )->isDeprecated ()->yes ());
0 commit comments