Skip to content

Commit b350ae6

Browse files
committed
Add missing uses
1 parent 1abeb1c commit b350ae6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

guide/src/macros/classes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ pub fn throw_exception() -> PhpResult<i32> {
8585
To implement an interface, use `#[implements(ce)]` where `ce` is an expression returning a `ClassEntry`.
8686
The following example implements [`ArrayAccess`](https://www.php.net/manual/en/class.arrayaccess.php):
8787
```rust,no_run
88+
# #![cfg_attr(windows, feature(abi_vectorcall))]
89+
# extern crate ext_php_rs;
90+
use ext_php_rs::prelude::*;
91+
use ext_php_rs::{exception::PhpException, zend::ce, types::Zval};
92+
8893
#[php_class]
8994
#[implements(ce::arrayaccess())]
9095
pub struct EvenNumbersArray;

0 commit comments

Comments
 (0)