We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97bf7d9 commit 8f2076eCopy full SHA for 8f2076e
phper/src/values.rs
@@ -178,16 +178,12 @@ impl ExecuteData {
178
179
/// Gets associated `$this` object if exists.
180
pub fn get_this(&mut self) -> Option<&ZObj> {
181
- unsafe {
182
- ZVal::try_from_ptr(phper_get_this(&mut self.inner))?.as_z_obj()
183
- }
+ unsafe { ZVal::try_from_ptr(phper_get_this(&mut self.inner))?.as_z_obj() }
184
}
185
186
/// Gets associated mutable `$this` object if exists.
187
pub fn get_this_mut(&mut self) -> Option<&mut ZObj> {
188
189
- ZVal::try_from_mut_ptr(phper_get_this(&mut self.inner))?.as_mut_z_obj()
190
+ unsafe { ZVal::try_from_mut_ptr(phper_get_this(&mut self.inner))?.as_mut_z_obj() }
191
192
193
/// Gets associated called scope if it exists
0 commit comments