Commit d6250b3
committed
Fix order of class definition
As indicated in the documentation on inheritance, PHP
requires that classes be defined before they are used.
In terms of a class that extends another class, the
parent should be defined before the child. Earlier
versions of PHP (and indeed the current version) may
have been lenient on this point, but most opcache
engines enforce the stricter ordering requirement.
@url http://www.php.net/manual/en/language.oop5.inheritance.php1 parent 560856f commit d6250b3
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
104 | 101 | | |
105 | 102 | | |
106 | 103 | | |
107 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments