diff --git a/composer.json b/composer.json index 95d387f..cc1707b 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "type": "library", "require": { "php": "^8.0", - "symplify/easy-coding-standard": "10.0.2" + "symplify/easy-coding-standard": "10.0.8" }, "require-dev": { "composer/composer": "2.*", diff --git a/tests/codestyle/CodestyleTest.php b/tests/codestyle/CodestyleTest.php index ac316c9..b99e264 100644 --- a/tests/codestyle/CodestyleTest.php +++ b/tests/codestyle/CodestyleTest.php @@ -31,6 +31,7 @@ public function testPhp80Fixtures(): void "strictTypes", "trailingCommas", "unionTypes", + "references", ]; foreach ($fixtures as $fixture) { @@ -46,6 +47,7 @@ public function testPhp81Fixtures(): void { $fixtures = [ "enums", + "readonlies", ]; foreach ($fixtures as $fixture) { diff --git a/tests/codestyle/fixtures/readonlies/actual.php b/tests/codestyle/fixtures/readonlies/actual.php new file mode 100644 index 0000000..da597ec --- /dev/null +++ b/tests/codestyle/fixtures/readonlies/actual.php @@ -0,0 +1,10 @@ +