Update v1.0.6
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Foo\Bar;
|
||||
|
||||
class Baz {}
|
||||
|
||||
namespace Other\Space;
|
||||
|
||||
class Extender extends \Foo\Bar\Baz {}
|
||||
|
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
namespace Foo\Bar;
|
||||
|
||||
class TestClass
|
||||
{
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
namespace Foo\BarScoped {
|
||||
|
||||
class TestClass {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
interface foo {
|
||||
}
|
||||
|
||||
class class_with_method_that_declares_anonymous_class
|
||||
{
|
||||
public function method()
|
||||
{
|
||||
$o = new class { public function foo() {} };
|
||||
$o = new class{public function foo(){}};
|
||||
$o = new class extends stdClass {};
|
||||
$o = new class extends stdClass {};
|
||||
$o = new class implements foo {};
|
||||
}
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
$function1 = function($foo, $bar) use ($var) {};
|
||||
$function2 = function(Foo $foo, $bar) use ($var) {};
|
||||
$function3 = function ($foo, $bar, $baz) {};
|
||||
$function4 = function (Foo $foo, $bar, $baz) {};
|
||||
$function5 = function () {};
|
||||
$function6 = function() {};
|
@@ -1,3 +0,0 @@
|
||||
<?php
|
||||
class TestClass {
|
||||
}
|
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
class Foo
|
||||
{
|
||||
public function bar()
|
||||
{
|
||||
return Foo::CLASS;
|
||||
}
|
||||
}
|
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
namespace Foo\Bar;
|
||||
|
||||
class TestClassInBar
|
||||
{
|
||||
}
|
||||
|
||||
namespace Foo\Baz;
|
||||
|
||||
class TestClassInBaz
|
||||
{
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
namespace Foo\Bar
|
||||
{
|
||||
class TestClassInBar
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
namespace Foo\Baz
|
||||
{
|
||||
class TestClassInBaz
|
||||
{
|
||||
}
|
||||
}
|
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Some comment
|
||||
*/
|
||||
class Foo{function foo(){}
|
||||
|
||||
/**
|
||||
* @param Baz $baz
|
||||
*/
|
||||
public function bar(Baz $baz)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Foobar $foobar
|
||||
*/
|
||||
static public function foobar(Foobar $foobar)
|
||||
{
|
||||
}
|
||||
|
||||
public function barfoo(Barfoo $barfoo)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* This docblock does not belong to the baz function
|
||||
*/
|
||||
|
||||
public function baz()
|
||||
{
|
||||
}
|
||||
|
||||
public function blaz($x, $y)
|
||||
{
|
||||
}
|
||||
}
|
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
// short desc
|
||||
abstract class A {
|
||||
/* abst meth: */
|
||||
public static abstract function method();
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
// This file is example#1
|
||||
// from http://www.php.net/manual/en/function.get-included-files.php
|
||||
|
||||
include 'test1.php';
|
||||
include_once 'test2.php';
|
||||
require 'test3.php';
|
||||
require_once 'test4.php';
|
||||
|
||||
$included_files = get_included_files();
|
||||
|
||||
foreach ($included_files as $filename) {
|
||||
echo "$filename\n";
|
||||
}
|
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
// Declare the interface 'iTemplate'
|
||||
interface iTemplate
|
||||
{
|
||||
public function setVariable($name, $var);
|
||||
public function
|
||||
getHtml($template);
|
||||
}
|
||||
|
||||
interface a
|
||||
{
|
||||
public function foo();
|
||||
}
|
||||
|
||||
interface b extends a
|
||||
{
|
||||
public function baz(Baz $baz);
|
||||
}
|
||||
|
||||
// short desc for class that implement a unique interface
|
||||
class c implements b
|
||||
{
|
||||
public function foo()
|
||||
{
|
||||
}
|
||||
|
||||
public function baz(Baz $baz)
|
||||
{
|
||||
}
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
function foo($a, array $b, array $c = array()) {}
|
||||
interface i { public function m($a, array $b, array $c = array()); }
|
||||
abstract class a { abstract public function m($a, array $b, array $c = array()); }
|
||||
class c { public function m($a, array $b, array $c = array()) {} }
|
Reference in New Issue
Block a user