Skip to content

Commit 9505f72

Browse files
kakserpomclaude
andcommitted
docs: mark readonly class examples as ignore for PHP 8.1 compatibility
The skeptic tests for readonly class examples were failing on the PHP 8.1 coverage job because `readonly` requires PHP 8.2+. Changed from `no_run` (which still compiles) to `ignore` to skip these examples on older PHP versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6af5dca commit 9505f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guide/src/macros/classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ PHP 8.2 introduced [readonly classes](https://www.php.net/manual/en/language.oop
254254
where all properties are implicitly readonly. You can create a readonly class using
255255
the `#[php(readonly)]` attribute:
256256

257-
```rust,no_run
257+
```rust,ignore
258258
# #![cfg_attr(windows, feature(abi_vectorcall))]
259259
# extern crate ext_php_rs;
260260
use ext_php_rs::prelude::*;
@@ -307,7 +307,7 @@ var_dump($reflection->isReadOnly()); // true
307307

308308
The `readonly` attribute is compatible with other class attributes:
309309

310-
```rust,no_run
310+
```rust,ignore
311311
# #![cfg_attr(windows, feature(abi_vectorcall))]
312312
# extern crate ext_php_rs;
313313
use ext_php_rs::prelude::*;

0 commit comments

Comments
 (0)