Merge branch '5.1' into master

* 5.1:
  fix tests
This commit is contained in:
Christian Flothmann 2020-09-03 10:41:50 +02:00
commit 7ce234a34b
2 changed files with 10 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -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!