This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Functions { | |
| public static function getScope() { | |
| // Here I had to instantiate the class twice, or the static method would not be callable (???) | |
| return ['Functions\Inner' => new \Functions\Inner((new \Function\Inner([]))::getScope()) ]; | |
| } | |
| public function __construct($scope) { | |
| if ($scope !== []) { | |
| $this->scope = $scope; |
OlderNewer