composeer update
This commit is contained in:
Vendored
+5
@@ -1,3 +1,8 @@
|
||||
1.8.1 / 2019/06/13
|
||||
==================
|
||||
|
||||
* [fixed] Don't try to patch final constructors (@NiR)
|
||||
|
||||
1.8.0 / 2018/08/05
|
||||
==================
|
||||
|
||||
|
||||
+2
-2
@@ -31,8 +31,8 @@
|
||||
},
|
||||
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Prophecy\\": "src/"
|
||||
"psr-4": {
|
||||
"Prophecy\\": "src/Prophecy"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
+4
@@ -41,6 +41,10 @@ class DisableConstructorPatch implements ClassPatchInterface
|
||||
*/
|
||||
public function apply(ClassNode $node)
|
||||
{
|
||||
if (!$node->isExtendable('__construct')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$node->hasMethod('__construct')) {
|
||||
$node->addMethod(new MethodNode('__construct', ''));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user