Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -1,4 +1,5 @@
<?php
interface AnInterface
{
public function doSomething();

View File

@@ -0,0 +1,5 @@
<?php
interface AnInterfaceWithReturnType
{
public function returnAnArray(): array;
}

View File

@@ -0,0 +1,56 @@
<?php
class ClassWithAllPossibleReturnTypes
{
public function methodWithNoReturnTypeDeclaration()
{
}
public function methodWithVoidReturnTypeDeclaration(): void
{
}
public function methodWithStringReturnTypeDeclaration(): string
{
return 'string';
}
public function methodWithFloatReturnTypeDeclaration(): float
{
return 1.0;
}
public function methodWithIntReturnTypeDeclaration(): int
{
return 1;
}
public function methodWithBoolReturnTypeDeclaration(): bool
{
return true;
}
public function methodWithArrayReturnTypeDeclaration(): array
{
return ['string'];
}
public function methodWithTraversableReturnTypeDeclaration(): Traversable
{
return new ArrayIterator(['string']);
}
public function methodWithGeneratorReturnTypeDeclaration(): Generator
{
yield 1;
}
public function methodWithObjectReturnTypeDeclaration(): object
{
return new Exception;
}
public function methodWithClassReturnTypeDeclaration(): stdClass
{
return new stdClass;
}
}

View File

@@ -0,0 +1,7 @@
<?php
class ClassWithSelfTypeHint
{
public function foo(self $foo)
{
}
}

View File

@@ -3,7 +3,7 @@ function functionCallback()
{
$args = func_get_args();
if ($args == array('foo', 'bar')) {
if ($args == ['foo', 'bar']) {
return 'pass';
}
}

View File

@@ -0,0 +1,5 @@
<?php
interface InterfaceWithSemiReservedMethodName
{
public function unset();
}

View File

@@ -5,7 +5,7 @@ class MethodCallback
{
$args = func_get_args();
if ($args == array('foo', 'bar')) {
if ($args == ['foo', 'bar']) {
return 'pass';
}
}
@@ -14,7 +14,7 @@ class MethodCallback
{
$args = func_get_args();
if ($args == array('foo', 'bar')) {
if ($args == ['foo', 'bar']) {
return 'pass';
}
}

View File

@@ -6,7 +6,7 @@ class Mockable
public function __construct($arg1 = null, $arg2 = null)
{
$this->constructorArgs = array($arg1, $arg2);
$this->constructorArgs = [$arg1, $arg2];
}
public function mockableMethod()

View File

@@ -3,11 +3,11 @@ class SomeClass
{
public function doSomething($a, $b)
{
return null;
return;
}
public function doSomethingElse($c)
{
return null;
return;
}
}

View File

@@ -0,0 +1,8 @@
<?php
class StringableClass
{
public function __toString()
{
return '12345';
}
}

View File

@@ -1,4 +1,5 @@
<?php
interface TraversableMockTestInterface extends Traversable
interface TraversableMockTestInterface extends \Traversable
{
}