Skip to content

Commit 8953d96

Browse files
TysonAndrenikic
authored andcommitted
Fix typos in the specification markdown
Detected by https://github.com/client9/misspell
1 parent 7d35063 commit 8953d96

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

spec/07-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ function f(){
344344
echo "\$fs = $fs\n"; // $fs =
345345
$fs = 5; // assign 5 to the function static $fs (local variable is not modified)
346346
echo "\$fs = $fs\n"; // $fs = 5
347-
global $fs; // define a global variabel with name $fs
347+
global $fs; // define a global variable with name $fs
348348
echo "\$fs = $fs\n"; // $fs =
349-
$fs = 3; // assign 3 to the global variable $fs (function static and local variabel is not modified
349+
$fs = 3; // assign 3 to the global variable $fs (function static and local variable is not modified
350350
echo "\$fs = $fs\n"; // $fs = 3
351351
static $fs;
352352
++$fs; // increment function static $fs

spec/08-conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Explicit type conversion is performed using the [cast operator](10-expressions.md#cast-operator).
66
If an operation or language construct expects operand of one type and a value of another type is given,
7-
implict (automatic) conversion will be performed. Same will happen with most internal functions, though some
7+
implicit (automatic) conversion will be performed. Same will happen with most internal functions, though some
88
functions may do different things depending on argument type and thus would not perform the conversion.
99

1010
If an expression is converted to its own type, the type and value of the

spec/13-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ case of an *outer function*, and an *inner function* defined within it.
1717
Until the outer function is called at least once, its inner function
1818
does not exist. Even if the outer function is called, if its runtime logic
1919
bypasses the definition of the inner function, that inner function still
20-
does not exist. The conditionally defined function comes into existance when
20+
does not exist. The conditionally defined function comes into existence when
2121
the execution flow reaches the point where the function is defined.
2222

2323
Any function containing [`yield`](10-expressions.md#yield-operator) is a *generator function*.

spec/14-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ The *method-modifiers* must not contain `static` and must define public visibili
11951195

11961196
If the [dynamic property](#dynamic-members) designated by `$name` exists, this
11971197
instance method returns `TRUE`; otherwise, `FALSE` is returned. The speficis of
1198-
how existance of the dynamic property is determined is left to the implementor of the method.
1198+
how existence of the dynamic property is determined is left to the implementor of the method.
11991199

12001200
Typically, `__isset` is called implicitly, when the intrinsic [`isset`](10-expressions.md#isset)
12011201
or intrinsic [`empty`](10-expressions.md#empty) is called with an argument that designates
@@ -1997,7 +1997,7 @@ __PHP_Incomplete_Class
19971997
}
19981998
```
19991999

2000-
Object of this class can be serialized, however, any attemt to call its method or access its property
2000+
Object of this class can be serialized, however, any attempt to call its method or access its property
20012001
for any other operation except serialization will result in a fatal error.
20022002

20032003
### Class `stdClass`

0 commit comments

Comments
 (0)