Skip to content

Commit 173f375

Browse files
committed
Improve readme
1 parent e1fac70 commit 173f375

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,8 @@ To check the environment, it is recommended to use the `assert` functionality.
5757
use FFI\Env\Runtime;
5858
use FFI\Env\Exception\EnvironmentException;
5959

60-
assert(Runtime::assertAvailable(), EnvironmentException::getErrorMessageFromStatus());
60+
assert(Runtime::assertAvailable());
61+
62+
// Or using your own assertion error message:
63+
assert(Runtime::isAvailable(), EnvironmentException::getErrorMessageFromStatus());
6164
```

0 commit comments

Comments
 (0)