Welcome to mirror list, hosted at ThFree Co, Russian Federation.

class_with_method_that_declares_anonymous_class2.php « _fixture « tests « php-token-stream « phpunit « vendor - github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f3ee28e2444e160eb6fe9ac124c0f47695c8ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
class Test {
	public function methodOne() {
		$foo = new class {
			public function method_in_anonymous_class() {
				return true;
			}
		};

		return $foo->method_in_anonymous_class();
	}

	public function methodTwo() {
		return false;
	}
}