Skip to content

Commit 3151da1

Browse files
authored
Merge pull request #179 from Codeception/goaop-3.0.0
Support goaop/framework v3
2 parents ccb6e36 + 432f11b commit 3151da1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
},
1515
"require": {
1616
"php": ">=7.0.0",
17-
"goaop/framework": "^2.2.0",
17+
"goaop/framework": "^2.2.0 | ^3.0.0-RC2",
1818
"phpunit/phpunit": "> 6.0.0",
19-
"symfony/finder": "~2.4|~3.0|~4.0|~5.0"
19+
"symfony/finder": ">=2.4 <6.0"
2020
},
2121
"require-dev": {
2222
"codeception/codeception": "^4.0",

src/AspectMock/Intercept/BeforeMockTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class BeforeMockTransformer extends WeavingTransformer
1111
protected $before = " if ((\$__am_res = __amock_before(\$this, __CLASS__, __FUNCTION__, array(%s), false)) !== __AM_CONTINUE__) return \$__am_res; ";
1212
protected $beforeStatic = " if ((\$__am_res = __amock_before(get_called_class(), __CLASS__, __FUNCTION__, array(%s), true)) !== __AM_CONTINUE__) return \$__am_res; ";
1313

14-
public function transform(StreamMetaData $metadata)
14+
public function transform(StreamMetaData $metadata): string
1515
{
1616
$result = self::RESULT_ABSTAIN;
1717
$reflectedFile = new ReflectionFile($metadata->uri, $metadata->syntaxTree);

src/AspectMock/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function loadFile($file)
5858
include FilterInjectorTransformer::rewrite($file);
5959
}
6060

61-
protected function registerTransformers()
61+
protected function registerTransformers(): array
6262
{
6363
$cachePathManager = $this->getContainer()->get('aspect.cache.path.manager');;
6464

0 commit comments

Comments
 (0)