Skip to content

Commit 8494fa1

Browse files
committed
[4.4] Ignore more deprecations for Mockery mocks
1 parent 0b8c4bb commit 8494fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extractor/PhpExtractor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private function getValue(\Iterator $tokenIterator)
200200
*/
201201
protected function parseTokens($tokens, MessageCatalogue $catalog/*, string $filename*/)
202202
{
203-
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) {
203+
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) {
204204
@trigger_error(sprintf('The "%s()" method will have a new "string $filename" argument in version 5.0, not defining it is deprecated since Symfony 4.3.', __METHOD__), \E_USER_DEPRECATED);
205205
}
206206
$filename = 2 < \func_num_args() ? func_get_arg(2) : '';

0 commit comments

Comments
 (0)