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

@@ -32,8 +32,6 @@ class Route
private $condition;
/**
* Constructor.
*
* @param array $data An array of key/value parameters
*
* @throws \BadMethodCallException
@@ -48,7 +46,7 @@ class Route
foreach ($data as $key => $value) {
$method = 'set'.str_replace('_', '', $key);
if (!method_exists($this, $method)) {
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, get_class($this)));
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, \get_class($this)));
}
$this->$method($value);
}
@@ -116,7 +114,7 @@ class Route
public function setSchemes($schemes)
{
$this->schemes = is_array($schemes) ? $schemes : array($schemes);
$this->schemes = \is_array($schemes) ? $schemes : array($schemes);
}
public function getSchemes()
@@ -126,7 +124,7 @@ class Route
public function setMethods($methods)
{
$this->methods = is_array($methods) ? $methods : array($methods);
$this->methods = \is_array($methods) ? $methods : array($methods);
}
public function getMethods()