Skip to content

Commit af3d508

Browse files
minor symfony#38386 [5.1] Ignore more deprecations for Mockery mocks (fancyweb)
This PR was merged into the 5.1 branch. Discussion ---------- [5.1] Ignore more deprecations for Mockery mocks | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Continuation of symfony#38377 on 5.1. Commits ------- 58e6cb1 [5.1] Ignore more deprecations for Mockery mocks
2 parents 8ae323b + 58e6cb1 commit af3d508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Routing/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function count()
7676
*/
7777
public function add(string $name, Route $route/*, int $priority = 0*/)
7878
{
79-
if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) {
79+
if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockInterface) {
8080
trigger_deprecation('symfony/routing', '5.1', 'The "%s()" method will have a new "int $priority = 0" argument in version 6.0, not defining it is deprecated.', __METHOD__);
8181
}
8282

0 commit comments

Comments
 (0)