[DOC-CVS] [doc-en] master: Fix typo (#5280)
[email protected] (MorganLOCode via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: MorganLOCode (MorganLOCode)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2026-02-06T10:56:00+08:00
Commit: https://github.com/php/doc-en/commit/b07b628d6fc189d0ddf08b92abed5a4d9a722889
Raw diff: https://github.com/php/doc-en/commit/b07b628d6fc189d0ddf08b92abed5a4d9a722889.diff
Fix typo (#5280)
Sometimes the spelling used is "writeable", sometimes it's "writable". Both are valid in English, but the SplFileInfo method is "isWritable".
Changed paths:
M reference/spl/splfileinfo/iswritable.xml
Diff:
diff --git a/reference/spl/splfileinfo/iswritable.xml b/reference/spl/splfileinfo/iswritable.xml
index c4a01a39d564..7f8465d8fc5c 100644
--- a/reference/spl/splfileinfo/iswritable.xml
+++ b/reference/spl/splfileinfo/iswritable.xml
@@ -33,13 +33,13 @@
&reftitle.examples;
<para>
<example>
- <title><methodname>SplFileInfo::isWriteable</methodname> example</title>
+ <title><methodname>SplFileInfo::isWritable</methodname> example</title>
<programlisting role="php">
<![CDATA[
<?php
$info = new SplFileInfo('locked.jpg');
-if (!$info->isWriteable()) {
- echo $info->getFilename() . ' is not writeable';
+if (!$info->isWritable()) {
+ echo $info->getFilename() . ' is not writable';
}
?>
]]>
@@ -47,7 +47,7 @@ if (!$info->isWriteable()) {
&example.outputs.similar;
<screen>
<![CDATA[
-locked.jpg is not writeable
+locked.jpg is not writable
]]>
</screen>
</example>