File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Tests/DeprecationErrorHandler Expand file tree Collapse file tree 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)
3737 $ service = new SomeService ();
3838 $ service ->indirectDeprecatedApi ($ useContracts );
3939 }
40+
41+ public function directDeprecations ()
42+ {
43+ $ service1 = new SomeService ();
44+ $ service1 ->deprecatedApi ();
45+
46+ $ service2 = new SomeOtherService ();
47+ $ service2 ->deprecatedApi ();
48+ }
4049}
4150
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ require __DIR__.'/fake_vendor_bis/autoload.php';
3838--EXPECTF--
3939Remaining direct deprecation notices (2)
4040
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.
4242 1x in AppService::directDeprecations from App\Services
4343
4444 1x: deprecatedApi from foo is deprecated! You should stop relying on it!
You can’t perform that action at this time.
0 commit comments