Laravel 5.6 updates

Travis config update

Removed HHVM script as Laravel no longer support HHVM after releasing 5.3
This commit is contained in:
Manish Verma
2018-08-06 20:08:55 +05:30
parent 126fbb0255
commit 1ac0f42a58
2464 changed files with 65239 additions and 46734 deletions

View File

@@ -58,7 +58,7 @@ class RouteCollectionBuilder
*/
public function import($resource, $prefix = '/', $type = null)
{
/** @var RouteCollection[] $collection */
/** @var RouteCollection[] $collections */
$collections = $this->load($resource, $type);
// create a builder from the RouteCollection
@@ -253,7 +253,7 @@ class RouteCollectionBuilder
*
* @return $this
*/
private function addResource(ResourceInterface $resource)
private function addResource(ResourceInterface $resource): self
{
$this->resources[] = $resource;
@@ -324,10 +324,8 @@ class RouteCollectionBuilder
/**
* Generates a route name based on details of this route.
*
* @return string
*/
private function generateRouteName(Route $route)
private function generateRouteName(Route $route): string
{
$methods = implode('_', $route->getMethods()).'_';
@@ -351,7 +349,7 @@ class RouteCollectionBuilder
*
* @throws FileLoaderLoadException If no loader is found
*/
private function load($resource, $type = null)
private function load($resource, string $type = null): array
{
if (null === $this->loader) {
throw new \BadMethodCallException('Cannot import other routing resources: you must pass a LoaderInterface when constructing RouteCollectionBuilder.');