This repository was archived by the owner on Jun 2, 2021. It is now read-only.
This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Closure numbering is not working correctly #28
Open
Description
php
<?php
namespace MySpace;
class TestClass {
public function __construct() {
$foo = function() {};
}
}
output files:
testclass.zep
namespace MySpace;
class TestClass
{
public function __construct() -> void
{
var foo;
let foo = new TestClass__constructClosureOne();
}
}
testclass__constructclosurezero.zep
namespace MySpace;
class TestClass__constructClosureZero
{
public function __construct()
{
}
public function __invoke()
{
}
}
notice trying to instantiate class TestClass__constructClosureOne
but class is TestClass__constructClosureZero
--> One or Zero ??