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

@@ -35,7 +35,7 @@ class Unescaper
*
* @return string The unescaped string
*/
public function unescapeSingleQuotedString($value)
public function unescapeSingleQuotedString(string $value): string
{
return str_replace('\'\'', '\'', $value);
}
@@ -47,7 +47,7 @@ class Unescaper
*
* @return string The unescaped string
*/
public function unescapeDoubleQuotedString($value)
public function unescapeDoubleQuotedString(string $value): string
{
$callback = function ($match) {
return $this->unescapeCharacter($match[0]);
@@ -64,7 +64,7 @@ class Unescaper
*
* @return string The unescaped character
*/
private function unescapeCharacter($value)
private function unescapeCharacter(string $value): string
{
switch ($value[1]) {
case '0':
@@ -120,12 +120,8 @@ class Unescaper
/**
* Get the UTF-8 character for the given code point.
*
* @param int $c The unicode code point
*
* @return string The corresponding UTF-8 character
*/
private static function utf8chr($c)
private static function utf8chr(int $c): string
{
if (0x80 > $c %= 0x200000) {
return \chr($c);