From bbdc8f8007cc0ba292575ca23740db258dc06152 Mon Sep 17 00:00:00 2001 From: Wouter Wolters <typo3@wouterwolters.nl> Date: Sun, 15 Aug 2021 19:32:36 +0200 Subject: [PATCH] [TASK] Use ParserFactory::ONLY_PHP7 everywhere instead of PREFER_PHP7 Resolves: #94895 Releases: master Change-Id: Ic8a69d570627e3017c53b2ad2959ade0f657fb5f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70603 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> --- typo3/sysext/install/Classes/Controller/UpgradeController.php | 2 +- .../ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php | 2 +- .../ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php | 2 +- .../ExtensionScanner/Php/Matcher/ClassConstantMatcherTest.php | 2 +- .../Unit/ExtensionScanner/Php/Matcher/ClassNameMatcherTest.php | 2 +- .../Unit/ExtensionScanner/Php/Matcher/ConstantMatcherTest.php | 2 +- .../Php/Matcher/ConstructorArgumentMatcherTest.php | 2 +- .../ExtensionScanner/Php/Matcher/FunctionCallMatcherTest.php | 2 +- .../Php/Matcher/InterfaceMethodChangedMatcherTest.php | 2 +- .../Php/Matcher/MethodAnnotationMatcherTest.php | 2 +- .../Php/Matcher/MethodArgumentDroppedMatcherTest.php | 2 +- .../Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php | 2 +- .../Php/Matcher/MethodArgumentRequiredMatcherTest.php | 2 +- .../Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php | 2 +- .../Php/Matcher/MethodArgumentUnusedMatcherTest.php | 2 +- .../Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php | 2 +- .../Php/Matcher/MethodCallStaticMatcherTest.php | 2 +- .../Php/Matcher/PropertyAnnotationMatcherTest.php | 2 +- .../Php/Matcher/PropertyExistsStaticMatcherTest.php | 2 +- .../Php/Matcher/PropertyProtectedMatcherTest.php | 2 +- .../ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/typo3/sysext/install/Classes/Controller/UpgradeController.php b/typo3/sysext/install/Classes/Controller/UpgradeController.php index 04b48b484bac..93e9d395b25e 100644 --- a/typo3/sysext/install/Classes/Controller/UpgradeController.php +++ b/typo3/sysext/install/Classes/Controller/UpgradeController.php @@ -779,7 +779,7 @@ class UpgradeController extends AbstractController ); } - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); // Parse PHP file to AST and traverse tree calling visitors $statements = $parser->parse(file_get_contents($absoluteFilePath)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php index 38398c164fdb..8951eadbf549 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayDimensionMatcherTest.php @@ -33,7 +33,7 @@ class ArrayDimensionMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/ArrayDimensionMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php index d2a667326b24..981f7c038081 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ArrayGlobalMatcherTest.php @@ -33,7 +33,7 @@ class ArrayGlobalMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/ArrayGlobalMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassConstantMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassConstantMatcherTest.php index 691b68c02da0..cf967bc23fb4 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassConstantMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassConstantMatcherTest.php @@ -34,7 +34,7 @@ class ClassConstantMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/ClassConstantMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassNameMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassNameMatcherTest.php index 82011144cbd5..8d979abcd705 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassNameMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ClassNameMatcherTest.php @@ -34,7 +34,7 @@ class ClassNameMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/ClassNameMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstantMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstantMatcherTest.php index 29615c23f951..95bf46b56673 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstantMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstantMatcherTest.php @@ -34,7 +34,7 @@ class ConstantMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/ConstantMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstructorArgumentMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstructorArgumentMatcherTest.php index 2835c20add90..941001ee5b6a 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstructorArgumentMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/ConstructorArgumentMatcherTest.php @@ -84,7 +84,7 @@ class ConstructorArgumentMatcherTest extends TestCase */ public function hitsFromFixtureAreFound(array $configuration, array $expectation) { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/ConstructorArgumentMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/FunctionCallMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/FunctionCallMatcherTest.php index de63252c280d..d4673e6b52e0 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/FunctionCallMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/FunctionCallMatcherTest.php @@ -33,7 +33,7 @@ class FunctionCallMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/FunctionCallMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/InterfaceMethodChangedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/InterfaceMethodChangedMatcherTest.php index ce628411aaaa..ac0245ed9e4f 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/InterfaceMethodChangedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/InterfaceMethodChangedMatcherTest.php @@ -33,7 +33,7 @@ class InterfaceMethodChangedMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/InterfaceMethodChangedMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodAnnotationMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodAnnotationMatcherTest.php index 2dbcaac5e522..6a74bf41ce2c 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodAnnotationMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodAnnotationMatcherTest.php @@ -33,7 +33,7 @@ class MethodAnnotationMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodAnnotationMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php index 35caab0e7c00..5dba9de48541 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedMatcherTest.php @@ -33,7 +33,7 @@ class MethodArgumentDroppedMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodArgumentDroppedMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php index 40d5bb74ed6e..9d3830d3d889 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentDroppedStaticMatcherTest.php @@ -33,7 +33,7 @@ class MethodArgumentDroppedStaticMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodArgumentDroppedStaticMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php index 3bcd58c53b5e..4cf6e13bb470 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredMatcherTest.php @@ -33,7 +33,7 @@ class MethodArgumentRequiredMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodArgumentRequiredMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php index 7156f292054e..dd5f32fb69e0 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentRequiredStaticMatcherTest.php @@ -33,7 +33,7 @@ class MethodArgumentRequiredStaticMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodArgumentRequiredStaticMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php index e6b195829dd2..13b349764207 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodArgumentUnusedMatcherTest.php @@ -33,7 +33,7 @@ class MethodArgumentUnusedMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodArgumentUnusedMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php index e4d74c333e1b..e7fdc4b5840a 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallMatcherTest.php @@ -33,7 +33,7 @@ class MethodCallMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodCallMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php index be867ba90a0e..76d17f951c11 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/MethodCallStaticMatcherTest.php @@ -34,7 +34,7 @@ class MethodCallStaticMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/MethodCallStaticMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyAnnotationMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyAnnotationMatcherTest.php index 0923480da215..ee61a33e79f5 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyAnnotationMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyAnnotationMatcherTest.php @@ -33,7 +33,7 @@ class PropertyAnnotationMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/PropertyAnnotationMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php index 69f657322516..f368f9cf3995 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyExistsStaticMatcherTest.php @@ -33,7 +33,7 @@ class PropertyExistsStaticMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/PropertyExistsStaticMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php index 36f45c6a269e..a0026edb06eb 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyProtectedMatcherTest.php @@ -33,7 +33,7 @@ class PropertyProtectedMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/PropertyProtectedMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php index 3402c9e8edc7..ebeb5212bc11 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/PropertyPublicMatcherTest.php @@ -33,7 +33,7 @@ class PropertyPublicMatcherTest extends UnitTestCase */ public function hitsFromFixtureAreFound() { - $parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); + $parser = (new ParserFactory())->create(ParserFactory::ONLY_PHP7); $fixtureFile = __DIR__ . '/Fixtures/PropertyPublicMatcherFixture.php'; $statements = $parser->parse(file_get_contents($fixtureFile)); -- GitLab