File tree 2 files changed +10
-1
lines changed
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,14 @@ public function indirectDeprecation(bool $useContracts = false)
37
37
$ service = new SomeService ();
38
38
$ service ->indirectDeprecatedApi ($ useContracts );
39
39
}
40
+
41
+ public function directDeprecations ()
42
+ {
43
+ $ service1 = new SomeService ();
44
+ $ service1 ->deprecatedApi ();
45
+
46
+ $ service2 = new SomeOtherService ();
47
+ $ service2 ->deprecatedApi ();
48
+ }
40
49
}
41
50
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ require __DIR__.'/fake_vendor_bis/autoload.php';
38
38
--EXPECTF--
39
39
Remaining direct deprecation notices (2)
40
40
41
- 1x: deprecatedApi is deprecated! You should stop relying on it!
41
+ 1x: Since acme/lib 3.0: deprecatedApi is deprecated, use deprecatedApi_new instead.
42
42
1x in AppService::directDeprecations from App\Services
43
43
44
44
1x: deprecatedApi from foo is deprecated! You should stop relying on it!
You can’t perform that action at this time.
0 commit comments