Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7532cc

Browse files
committed
don't trigger "internal" deprecations for PHPUnit Stub objects
1 parentf35f975 commita7532cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
usePhake\IMock;
1919
usePHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
2020
usePHPUnit\Framework\MockObject\MockObject;
21+
usePHPUnit\Framework\MockObject\Stub;
2122
useProphecy\Prophecy\ProphecySubjectInterface;
2223
useProxyManager\Proxy\ProxyInterface;
2324
useSymfony\Component\DependencyInjection\Argument\LazyClosure;
@@ -253,6 +254,7 @@ public static function checkClasses(): bool
253254

254255
for (;$i <\count($symbols); ++$i) {
255256
if (!is_subclass_of($symbols[$i], MockObject::class)
257+
&& !is_subclass_of($symbols[$i], Stub::class)
256258
&& !is_subclass_of($symbols[$i], ProphecySubjectInterface::class)
257259
&& !is_subclass_of($symbols[$i], Proxy::class)
258260
&& !is_subclass_of($symbols[$i], ProxyInterface::class)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp