Merge branch '5.1' into master
* 5.1: fix tests
This commit is contained in:
commit
7ce234a34b
@ -37,5 +37,14 @@ final class AppService
|
||||
$service = new SomeService();
|
||||
$service->indirectDeprecatedApi($useContracts);
|
||||
}
|
||||
|
||||
public function directDeprecations()
|
||||
{
|
||||
$service1 = new SomeService();
|
||||
$service1->deprecatedApi();
|
||||
|
||||
$service2 = new SomeOtherService();
|
||||
$service2->deprecatedApi();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ require __DIR__.'/fake_vendor_bis/autoload.php';
|
||||
--EXPECTF--
|
||||
Remaining direct deprecation notices (2)
|
||||
|
||||
1x: deprecatedApi is deprecated! You should stop relying on it!
|
||||
1x: Since acme/lib 3.0: deprecatedApi is deprecated, use deprecatedApi_new instead.
|
||||
1x in AppService::directDeprecations from App\Services
|
||||
|
||||
1x: deprecatedApi from foo is deprecated! You should stop relying on it!
|
||||
|
Reference in New Issue
Block a user