mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Closes #3281: removed strict rule about using "new" from code style
This commit is contained in:
@ -139,7 +139,6 @@ class Foo
|
|||||||
### 4.5 Constructors
|
### 4.5 Constructors
|
||||||
|
|
||||||
- `__construct` should be used instead of PHP 4 style constructors.
|
- `__construct` should be used instead of PHP 4 style constructors.
|
||||||
- When instantiating class it should be `new MyClass();` instead of `new MyClass;`.
|
|
||||||
|
|
||||||
## 5 PHP
|
## 5 PHP
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user