diff --git a/composer.lock b/composer.lock index 8a3cf60..f3aa60a 100644 --- a/composer.lock +++ b/composer.lock @@ -382,16 +382,16 @@ }, { "name": "hhvm/hhast", - "version": "v3.27.3", + "version": "v3.27.4", "source": { "type": "git", "url": "https://github.com/hhvm/hhast.git", - "reference": "986f489c1bd3caddb27797c45abb6227c3d39366" + "reference": "6427a690f8436bf697972dd88e91705cbdce7fbd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hhvm/hhast/zipball/986f489c1bd3caddb27797c45abb6227c3d39366", - "reference": "986f489c1bd3caddb27797c45abb6227c3d39366", + "url": "https://api.github.com/repos/hhvm/hhast/zipball/6427a690f8436bf697972dd88e91705cbdce7fbd", + "reference": "6427a690f8436bf697972dd88e91705cbdce7fbd", "shasum": "" }, "require": { @@ -416,7 +416,7 @@ "license": [ "MIT" ], - "time": "2018-08-02T21:19:25+00:00" + "time": "2018-08-06T23:04:30+00:00" }, { "name": "hhvm/type-assert", diff --git a/examples/BaseRouterExample.php b/examples/BaseRouterExample.php index 5b6da99..e6c1d44 100644 --- a/examples/BaseRouterExample.php +++ b/examples/BaseRouterExample.php @@ -1,4 +1,4 @@ - is also a @@ -67,4 +67,5 @@ function main(): void { } } +/* HH_IGNORE_ERROR[1002] top-level statement in strict file */ main(); diff --git a/examples/UriPatternsExample.php b/examples/UriPatternsExample.php index b1afd95..0363da9 100644 --- a/examples/UriPatternsExample.php +++ b/examples/UriPatternsExample.php @@ -1,4 +1,4 @@ - $children) { diff --git a/src/PatternParser/Token.php b/src/PatternParser/Token.php index fdfe0d7..9b3f96f 100644 --- a/src/PatternParser/Token.php +++ b/src/PatternParser/Token.php @@ -1,4 +1,4 @@ - { public function __construct( diff --git a/src/uri-patterns/GetFastRoutePatternFromUriPattern.php b/src/uri-patterns/GetFastRoutePatternFromUriPattern.php index bc72792..c5e9321 100644 --- a/src/uri-patterns/GetFastRoutePatternFromUriPattern.php +++ b/src/uri-patterns/GetFastRoutePatternFromUriPattern.php @@ -1,4 +1,4 @@ - MAP = keyset[ @@ -100,7 +100,7 @@ public function expectedMatchesWithResolvers( /** @dataProvider getAllResolvers */ public function testMethodNotAllowedResponses( - string $name, + string $_name, (function(dict>): IResolver) $factory ): void { $map = dict[ @@ -148,7 +148,7 @@ public function testMatchesPattern( * @dataProvider expectedMatchesWithResolvers */ public function testAllResolvers( - string $resolver_name, + string $_resolver_name, IResolver $resolver, string $in, string $expected_responder, diff --git a/tests/UriBuilderTest.php b/tests/UriBuilderTest.php index f7a1c59..d357686 100644 --- a/tests/UriBuilderTest.php +++ b/tests/UriBuilderTest.php @@ -10,8 +10,8 @@ namespace Facebook\HackRouter; -use \Facebook\HackRouter\Tests\TestIntEnum; -use \Facebook\HackRouter\Tests\TestStringEnum; +use type Facebook\HackRouter\Tests\TestIntEnum; +use type Facebook\HackRouter\Tests\TestStringEnum; final class UriBuilderTest extends \PHPUnit_Framework_TestCase { public function testLiteral(): void { diff --git a/tests/UriPatternTest.php b/tests/UriPatternTest.php index 8f7b3da..385f161 100644 --- a/tests/UriPatternTest.php +++ b/tests/UriPatternTest.php @@ -10,8 +10,8 @@ namespace Facebook\HackRouter; -use \Facebook\HackRouter\Tests\TestStringEnum; -use \Facebook\HackRouter\Tests\TestIntEnum; +use type Facebook\HackRouter\Tests\TestStringEnum; +use type Facebook\HackRouter\Tests\TestIntEnum; final class UriPatternTest extends \PHPUnit_Framework_TestCase { public function testLiteral(): void {